rename imports to asim/go-micro (#2051)

This commit is contained in:
Asim Aslam
2020-10-20 10:15:39 +01:00
committed by GitHub
parent 1ee348109e
commit b508565a78
265 changed files with 673 additions and 673 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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 (

View File

@@ -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) {

View File

@@ -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

View File

@@ -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 (

View File

@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry"
)
var (

View File

@@ -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{}

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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) {

View File

@@ -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{}