Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] change reference to consistent with transfer repo from personal… #15

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.48.0
version: v1.55.2
args: --timeout=5m --skip-dirs='test,examples' --enable gofmt,golint,gocyclo,goimports --skip-files=.*_test.go$
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Step 1. Import the module and it's all plugins.

```go
import (
github.com/little-cui/etcdadpt
_ "github.com/little-cui/etcdadpt/embedded"
_ "github.com/little-cui/etcdadpt/remote"
github.com/go-chassis/etcdadpt
_ "github.com/go-chassis/etcdadpt/embedded"
_ "github.com/go-chassis/etcdadpt/remote"
)
```

Expand Down
4 changes: 2 additions & 2 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"sync"
"testing"

_ "github.com/little-cui/etcdadpt/test"
_ "github.com/go-chassis/etcdadpt/test"

"github.com/little-cui/etcdadpt"
"github.com/go-chassis/etcdadpt"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion buildin/buildin.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package buildin
import (
"context"

"github.com/little-cui/etcdadpt"
"github.com/go-chassis/etcdadpt"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions embedded/embedded_etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ import (
"go.etcd.io/etcd/server/v3/etcdserver/api/v3compactor"
"go.etcd.io/etcd/server/v3/lease"

"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/middleware/log"
"github.com/go-chassis/foundation/gopool"
"github.com/go-chassis/foundation/stringutil"
"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/middleware/log"
)

const DefaultDataDir = "data"

func init() {
etcdadpt.Install("embeded_etcd", NewEmbeddedEtcd) //TODO remove misspell in future
etcdadpt.Install("embeded_etcd", NewEmbeddedEtcd) // TODO remove misspell in future
etcdadpt.Install("embedded_etcd", NewEmbeddedEtcd)
}

Expand Down
6 changes: 3 additions & 3 deletions examples/dev/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"fmt"
"os"

_ "github.com/little-cui/etcdadpt/embedded"
_ "github.com/little-cui/etcdadpt/remote"
_ "github.com/go-chassis/etcdadpt/embedded"
_ "github.com/go-chassis/etcdadpt/remote"

"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/openlog"
"github.com/little-cui/etcdadpt"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/little-cui/etcdadpt
module github.com/go-chassis/etcdadpt

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"fmt"
"time"

"github.com/go-chassis/etcdadpt/middleware/log"
"github.com/go-chassis/foundation/backoff"
"github.com/little-cui/etcdadpt/middleware/log"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ package etcdadpt_test
import (
"testing"

_ "github.com/little-cui/etcdadpt/test"
_ "github.com/go-chassis/etcdadpt/test"

"github.com/little-cui/etcdadpt"
"github.com/go-chassis/etcdadpt"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/log/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package log_test
import (
"testing"

"github.com/go-chassis/etcdadpt/middleware/log"
"github.com/go-chassis/openlog"
"github.com/little-cui/etcdadpt/middleware/log"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/tracing/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package tracing
import (
"context"

"github.com/little-cui/etcdadpt"
"github.com/go-chassis/etcdadpt"
)

var globalTracer Tracer
Expand Down
4 changes: 2 additions & 2 deletions mutex.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"github.com/go-chassis/foundation/gopool"
"github.com/go-chassis/openlog"

"github.com/little-cui/etcdadpt/middleware/log"
"github.com/little-cui/etcdadpt/middleware/metrics"
"github.com/go-chassis/etcdadpt/middleware/log"
"github.com/go-chassis/etcdadpt/middleware/metrics"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions mutex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"testing"
"time"

_ "github.com/little-cui/etcdadpt/test"
_ "github.com/go-chassis/etcdadpt/test"

"github.com/little-cui/etcdadpt"
"github.com/go-chassis/etcdadpt"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions remote/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (

clientv3 "go.etcd.io/etcd/client/v3"

"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/middleware/log"
"github.com/go-chassis/etcdadpt/middleware/metrics"
"github.com/go-chassis/foundation/gopool"
"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/middleware/log"
"github.com/little-cui/etcdadpt/middleware/metrics"
)

var FirstEndpoint string
Expand Down
4 changes: 2 additions & 2 deletions remote/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"testing"
"time"

"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/remote"
"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/remote"
"github.com/stretchr/testify/assert"
"go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/api/v3/mvccpb"
Expand Down
4 changes: 2 additions & 2 deletions remote/healthz.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"github.com/go-chassis/foundation/backoff"

"github.com/little-cui/etcdadpt/middleware/log"
"github.com/little-cui/etcdadpt/middleware/metrics"
"github.com/go-chassis/etcdadpt/middleware/log"
"github.com/go-chassis/etcdadpt/middleware/metrics"
)

func (c *Client) HealthCheck() {
Expand Down
4 changes: 2 additions & 2 deletions remote/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"fmt"
"time"

"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/middleware/metrics"
"github.com/go-chassis/foundation/stringutil"
"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/middleware/metrics"
"go.etcd.io/etcd/api/v3/mvccpb"
clientv3 "go.etcd.io/etcd/client/v3"
)
Expand Down
4 changes: 2 additions & 2 deletions remote/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"strconv"
"time"

"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/middleware/metrics"
"github.com/go-chassis/foundation/stringutil"
"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/middleware/metrics"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
clientv3 "go.etcd.io/etcd/client/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion remote/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"time"

"github.com/little-cui/etcdadpt/middleware/log"
"github.com/go-chassis/etcdadpt/middleware/log"
)

func (c *Client) logRecover(r interface{}) {
Expand Down
6 changes: 3 additions & 3 deletions remote/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (

clientv3 "go.etcd.io/etcd/client/v3"

"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/middleware/log"
"github.com/little-cui/etcdadpt/middleware/metrics"
"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/middleware/log"
"github.com/go-chassis/etcdadpt/middleware/metrics"
)

var ErrGetLeaderFailed = errors.New("get leader failed")
Expand Down
2 changes: 1 addition & 1 deletion remote/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
package remote

import (
"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/foundation/stringutil"
"github.com/little-cui/etcdadpt"
clientv3 "go.etcd.io/etcd/client/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions remote/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"context"
"net/http"

"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/middleware/tracing"
"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/middleware/tracing"
)

func TracingBegin(ctx context.Context, operationName string, op etcdadpt.OpOptions) interface{} {
Expand Down
4 changes: 2 additions & 2 deletions remote/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"go.etcd.io/etcd/api/v3/etcdserverpb"

"github.com/little-cui/etcdadpt"
"github.com/little-cui/etcdadpt/middleware/metrics"
"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/etcdadpt/middleware/metrics"
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
clientv3 "go.etcd.io/etcd/client/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion remote/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"errors"
"fmt"

"github.com/go-chassis/etcdadpt"
"github.com/go-chassis/foundation/stringutil"
"github.com/little-cui/etcdadpt"
"go.etcd.io/etcd/api/v3/mvccpb"
clientv3 "go.etcd.io/etcd/client/v3"
)
Expand Down
6 changes: 3 additions & 3 deletions test/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ package test
import (
"os"

_ "github.com/little-cui/etcdadpt/embedded"
_ "github.com/little-cui/etcdadpt/remote"
_ "github.com/go-chassis/etcdadpt/embedded"
_ "github.com/go-chassis/etcdadpt/remote"

"github.com/little-cui/etcdadpt"
"github.com/go-chassis/etcdadpt"
)

func init() {
Expand Down
Loading