Skip to content

Commit

Permalink
Rename of repo to go-nats
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Nov 20, 2016
1 parent 71d76c2 commit c1c9ec3
Show file tree
Hide file tree
Showing 28 changed files with 40 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ script:
- go vet ./...
- go test -i -race ./...
- go test -v -race ./...
- staticcheck -ignore="github.com/nats-io/nats/*_test.go:SA2002 github.com/nats-io/nats/*/*_test.go:SA2002" ./...
- staticcheck -ignore="github.com/nats-io/go-nats/*_test.go:SA2002 github.com/nats-io/go-nats/*/*_test.go:SA2002" ./...
- ./scripts/cov.sh TRAVIS
2 changes: 1 addition & 1 deletion bench/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strconv"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
"github.com/nats-io/nuid"
)

Expand Down
3 changes: 2 additions & 1 deletion bench/benchlib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package bench

import (
"fmt"
"github.com/nats-io/nats"
"strings"
"testing"
"time"

"github.com/nats-io/go-nats"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion enc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

// Default Encoders
. "github.com/nats-io/nats/encoders/builtin"
. "github.com/nats-io/go-nats/encoders/builtin"
)

// Encoder interface is for all register encoders
Expand Down
6 changes: 3 additions & 3 deletions enc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"
"time"

. "github.com/nats-io/nats"
"github.com/nats-io/nats/encoders/protobuf"
"github.com/nats-io/nats/encoders/protobuf/testdata"
. "github.com/nats-io/go-nats"
"github.com/nats-io/go-nats/encoders/protobuf"
"github.com/nats-io/go-nats/encoders/protobuf/testdata"
)

// Since we import above nats packages, we need to have a different
Expand Down
6 changes: 3 additions & 3 deletions encoders/builtin/enc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/nats/encoders/builtin"
"github.com/nats-io/nats/test"
"github.com/nats-io/go-nats"
"github.com/nats-io/go-nats/encoders/builtin"
"github.com/nats-io/go-nats/test"
)

const TEST_PORT = 8168
Expand Down
4 changes: 2 additions & 2 deletions encoders/builtin/gob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"reflect"
"testing"

"github.com/nats-io/nats"
"github.com/nats-io/nats/test"
"github.com/nats-io/go-nats"
"github.com/nats-io/go-nats/test"
)

func NewGobEncodedConn(tl test.TestLogger) *nats.EncodedConn {
Expand Down
6 changes: 3 additions & 3 deletions encoders/builtin/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/nats/encoders/builtin"
"github.com/nats-io/nats/test"
"github.com/nats-io/go-nats"
"github.com/nats-io/go-nats/encoders/builtin"
"github.com/nats-io/go-nats/test"
)

func NewJsonEncodedConn(tl test.TestLogger) *nats.EncodedConn {
Expand Down
2 changes: 1 addition & 1 deletion encoders/protobuf/protobuf_enc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"errors"

"github.com/golang/protobuf/proto"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// Additional index for registered Encoders.
Expand Down
8 changes: 4 additions & 4 deletions encoders/protobuf/protobuf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/nats/test"
"github.com/nats-io/go-nats"
"github.com/nats-io/go-nats/test"

"github.com/nats-io/nats/encoders/protobuf"
pb "github.com/nats-io/nats/encoders/protobuf/testdata"
"github.com/nats-io/go-nats/encoders/protobuf"
pb "github.com/nats-io/go-nats/encoders/protobuf/testdata"
)

const TEST_PORT = 8068
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// Shows different ways to create a Conn
Expand Down
4 changes: 2 additions & 2 deletions examples/nats-bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"sync"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/nats/bench"
"github.com/nats-io/go-nats"
"github.com/nats-io/go-nats/bench"
)

// Some sane defaults
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-pub.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"flag"
"log"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// NOTE: Use tls scheme for TLS, e.g. nats-pub -s tls://demo.nats.io:4443 foo hello
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-qsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"runtime"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// NOTE: Use tls scheme for TLS, e.g. nats-qsub -s tls://demo.nats.io:4443 foo
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-req.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// NOTE: Use tls scheme for TLS, e.g. nats-req -s tls://demo.nats.io:4443 foo hello
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-rply.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"runtime"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// NOTE: Use tls scheme for TLS, e.g. nats-rply -s tls://demo.nats.io:4443 foo hello
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"runtime"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// NOTE: Use tls scheme for TLS, e.g. nats-sub -s tls://demo.nats.io:4443 foo
Expand Down
2 changes: 1 addition & 1 deletion nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sync/atomic"
"time"

"github.com/nats-io/nats/util"
"github.com/nats-io/go-nats/util"
"github.com/nats-io/nuid"
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/cov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mkdir cov
go test -v -covermode=atomic -coverprofile=./cov/nats.out
go test -v -covermode=atomic -coverprofile=./cov/builtin.out ./encoders/builtin
go test -v -covermode=atomic -coverprofile=./cov/protobuf.out ./encoders/protobuf
go test -v -covermode=atomic -coverprofile=./cov/test.out -coverpkg=github.com/nats-io/nats ./test
go test -v -covermode=atomic -coverprofile=./cov/test.out -coverpkg=github.com/nats-io/go-nats ./test
gocovmerge ./cov/*.out > acc.out
rm -rf ./cov

Expand Down
2 changes: 1 addition & 1 deletion test/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/nats-io/gnatsd/auth"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

func TestAuth(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

func TestCloseLeakingGoRoutines(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

func BenchmarkPublishSpeed(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion test/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/nats-io/gnatsd/auth"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

var testServers = []string{
Expand Down
2 changes: 1 addition & 1 deletion test/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

func TestDefaultConnection(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/netchan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

func TestBadChan(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/reconnect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/nats-io/gnatsd/server"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

func startReconnectServer(t *testing.T) *server.Server {
Expand Down
2 changes: 1 addition & 1 deletion test/sub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

// More advanced tests on subscriptions
Expand Down
2 changes: 1 addition & 1 deletion test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/nats-io/gnatsd/server"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"

gnatsd "github.com/nats-io/gnatsd/test"
)
Expand Down

0 comments on commit c1c9ec3

Please sign in to comment.