rename imports to asim/go-micro (#2051)
This commit is contained in:
4
registry/cache/README.md
vendored
4
registry/cache/README.md
vendored
@@ -1,6 +1,6 @@
|
||||
# Registry Cache
|
||||
|
||||
Cache is a library that provides a caching layer for the go-micro [registry](https://godoc.org/github.com/micro/go-micro/registry#Registry).
|
||||
Cache is a library that provides a caching layer for the go-micro [registry](https://godoc.org/github.com/asim/go-micro/registry#Registry).
|
||||
|
||||
If you're looking for caching in your microservices use the [selector](https://micro.mu/docs/fault-tolerance.html#caching-discovery).
|
||||
|
||||
@@ -19,7 +19,7 @@ type Cache interface {
|
||||
## Usage
|
||||
|
||||
```go
|
||||
import "github.com/micro/go-micro/registry/cache"
|
||||
import "github.com/asim/go-micro/registry/cache"
|
||||
|
||||
# create a new cache
|
||||
c := cache.New(registry)
|
||||
|
||||
6
registry/cache/cache.go
vendored
6
registry/cache/cache.go
vendored
@@ -7,9 +7,9 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
util "github.com/micro/go-micro/v3/util/registry"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
util "github.com/asim/go-micro/v3/util/registry"
|
||||
)
|
||||
|
||||
// Cache is the registry cache interface
|
||||
|
||||
@@ -14,10 +14,10 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/util/mdns"
|
||||
"github.com/google/uuid"
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/micro/go-micro/v3/util/mdns"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
func TestMDNS(t *testing.T) {
|
||||
|
||||
@@ -4,7 +4,7 @@ package mdns
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
// Domain sets the mdnsDomain
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
"github.com/google/uuid"
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -3,7 +3,7 @@ package memory
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
type servicesKey struct{}
|
||||
|
||||
@@ -3,7 +3,7 @@ package memory
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
func serviceToRecord(s *registry.Service, ttl time.Duration) *record {
|
||||
|
||||
@@ -3,7 +3,7 @@ package memory
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
type Watcher struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package memory
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
func TestWatcher(t *testing.T) {
|
||||
|
||||
@@ -4,7 +4,7 @@ package noop
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
type noopRegistry struct{}
|
||||
|
||||
Reference in New Issue
Block a user