rename imports to asim/go-micro (#2051)
This commit is contained in:
@@ -3,9 +3,9 @@ package auth
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/auth"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
"github.com/google/uuid"
|
||||
"github.com/micro/go-micro/v3/auth"
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
)
|
||||
|
||||
// Verify the auth credentials and refresh the auth token periodically
|
||||
|
||||
@@ -3,7 +3,7 @@ package client
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/micro/go-micro/v3/client"
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
)
|
||||
|
||||
type staticClient struct {
|
||||
|
||||
@@ -4,17 +4,17 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/broker"
|
||||
bmemory "github.com/micro/go-micro/v3/broker/memory"
|
||||
"github.com/micro/go-micro/v3/client"
|
||||
"github.com/micro/go-micro/v3/client/grpc"
|
||||
tmemory "github.com/micro/go-micro/v3/network/transport/memory"
|
||||
rmemory "github.com/micro/go-micro/v3/registry/memory"
|
||||
"github.com/micro/go-micro/v3/router"
|
||||
rtreg "github.com/micro/go-micro/v3/router/registry"
|
||||
"github.com/micro/go-micro/v3/server"
|
||||
grpcsrv "github.com/micro/go-micro/v3/server/grpc"
|
||||
cw "github.com/micro/go-micro/v3/util/client"
|
||||
"github.com/asim/go-micro/v3/broker"
|
||||
bmemory "github.com/asim/go-micro/v3/broker/memory"
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
"github.com/asim/go-micro/v3/client/grpc"
|
||||
tmemory "github.com/asim/go-micro/v3/network/transport/memory"
|
||||
rmemory "github.com/asim/go-micro/v3/registry/memory"
|
||||
"github.com/asim/go-micro/v3/router"
|
||||
rtreg "github.com/asim/go-micro/v3/router/registry"
|
||||
"github.com/asim/go-micro/v3/server"
|
||||
grpcsrv "github.com/asim/go-micro/v3/server/grpc"
|
||||
cw "github.com/asim/go-micro/v3/util/client"
|
||||
)
|
||||
|
||||
type TestFoo struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"net/textproto"
|
||||
"strings"
|
||||
|
||||
"github.com/micro/go-micro/v3/metadata"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
)
|
||||
|
||||
func FromRequest(r *http.Request) context.Context {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/metadata"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
)
|
||||
|
||||
func TestRequestToContext(t *testing.T) {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/micro/go-micro/v3/client"
|
||||
proto "github.com/micro/go-micro/v3/util/file/proto"
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
proto "github.com/asim/go-micro/v3/util/file/proto"
|
||||
)
|
||||
|
||||
// Client is the client interface to access files
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"github.com/micro/go-micro/v3/errors"
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/micro/go-micro/v3/server"
|
||||
proto "github.com/micro/go-micro/v3/util/file/proto"
|
||||
"github.com/asim/go-micro/v3/errors"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/server"
|
||||
proto "github.com/asim/go-micro/v3/util/file/proto"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
|
||||
import (
|
||||
context "context"
|
||||
api "github.com/micro/go-micro/v3/api"
|
||||
client "github.com/micro/go-micro/v3/client"
|
||||
server "github.com/micro/go-micro/v3/server"
|
||||
api "github.com/asim/go-micro/v3/api"
|
||||
client "github.com/asim/go-micro/v3/client"
|
||||
server "github.com/asim/go-micro/v3/server"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/micro/go-micro/v3/metadata"
|
||||
"github.com/micro/go-micro/v3/router/registry"
|
||||
"github.com/micro/go-micro/v3/selector/random"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
"github.com/asim/go-micro/v3/router/registry"
|
||||
"github.com/asim/go-micro/v3/selector/random"
|
||||
)
|
||||
|
||||
// Write sets the status and body on a http ResponseWriter
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/micro/go-micro/v3/registry/memory"
|
||||
"github.com/micro/go-micro/v3/router"
|
||||
regRouter "github.com/micro/go-micro/v3/router/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry/memory"
|
||||
"github.com/asim/go-micro/v3/router"
|
||||
regRouter "github.com/asim/go-micro/v3/router/registry"
|
||||
)
|
||||
|
||||
func TestRoundTripper(t *testing.T) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package http
|
||||
|
||||
import "github.com/micro/go-micro/v3/router"
|
||||
import "github.com/asim/go-micro/v3/router"
|
||||
|
||||
type Options struct {
|
||||
Router router.Router
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"github.com/micro/go-micro/v3/selector"
|
||||
"github.com/asim/go-micro/v3/selector"
|
||||
)
|
||||
|
||||
type roundTripper struct {
|
||||
|
||||
@@ -4,7 +4,7 @@ package io
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/micro/go-micro/v3/network/transport"
|
||||
"github.com/asim/go-micro/v3/network/transport"
|
||||
)
|
||||
|
||||
type rwc struct {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
)
|
||||
|
||||
// Request is used to construct a http request for the k8s API.
|
||||
|
||||
@@ -15,9 +15,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/micro/go-micro/v3/runtime"
|
||||
"github.com/micro/go-micro/v3/util/kubernetes/api"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/runtime"
|
||||
"github.com/asim/go-micro/v3/util/kubernetes/api"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/runtime"
|
||||
"github.com/asim/go-micro/v3/runtime"
|
||||
)
|
||||
|
||||
func TestTemplates(t *testing.T) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"github.com/micro/go-micro/v3/util/kubernetes/api"
|
||||
"github.com/asim/go-micro/v3/util/kubernetes/api"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Log
|
||||
|
||||
DEPRECATED: use github.com/micro/go-micro/v3/logger interface
|
||||
DEPRECATED: use github.com/asim/go-micro/v3/logger interface
|
||||
|
||||
This is the global logger for all micro based libraries.
|
||||
|
||||
@@ -10,8 +10,8 @@ Set the logger for micro libraries
|
||||
|
||||
```go
|
||||
// import go-micro/util/log
|
||||
import "github.com/micro/go-micro/util/log"
|
||||
import "github.com/asim/go-micro/util/log"
|
||||
|
||||
// SetLogger expects github.com/micro/go-micro/debug/log.Log interface
|
||||
// SetLogger expects github.com/asim/go-micro/debug/log.Log interface
|
||||
log.SetLogger(mylogger)
|
||||
```
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Package log is a global internal logger
|
||||
// DEPRECATED: this is frozen package, use github.com/micro/go-micro/v3/logger
|
||||
// DEPRECATED: this is frozen package, use github.com/asim/go-micro/v3/logger
|
||||
package log
|
||||
|
||||
import (
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"os"
|
||||
"sync/atomic"
|
||||
|
||||
dlog "github.com/micro/go-micro/v3/debug/log"
|
||||
nlog "github.com/micro/go-micro/v3/logger"
|
||||
dlog "github.com/asim/go-micro/v3/debug/log"
|
||||
nlog "github.com/asim/go-micro/v3/logger"
|
||||
)
|
||||
|
||||
// level is a log level
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
log "github.com/micro/go-micro/v3/logger"
|
||||
log "github.com/asim/go-micro/v3/logger"
|
||||
"github.com/miekg/dns"
|
||||
"golang.org/x/net/ipv4"
|
||||
"golang.org/x/net/ipv6"
|
||||
|
||||
@@ -5,7 +5,7 @@ var (
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/v3/plugin"
|
||||
"github.com/asim/go-micro/v3/plugin"
|
||||
|
||||
"{{.Path}}"
|
||||
)
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/network/transport"
|
||||
"github.com/google/uuid"
|
||||
"github.com/micro/go-micro/v3/network/transport"
|
||||
)
|
||||
|
||||
type pool struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/network/transport"
|
||||
"github.com/micro/go-micro/v3/network/transport/memory"
|
||||
"github.com/asim/go-micro/v3/network/transport"
|
||||
"github.com/asim/go-micro/v3/network/transport/memory"
|
||||
)
|
||||
|
||||
func testPool(t *testing.T, size int, ttl time.Duration) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package pool
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/network/transport"
|
||||
"github.com/asim/go-micro/v3/network/transport"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
|
||||
@@ -4,7 +4,7 @@ package pool
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/network/transport"
|
||||
"github.com/asim/go-micro/v3/network/transport"
|
||||
)
|
||||
|
||||
// Pool is an interface for connection pooling
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package registry
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
func addNodes(old, neu []*registry.Node) []*registry.Node {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
func TestRemove(t *testing.T) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
)
|
||||
|
||||
// InvalidTemplateError indicates that the path template is not valid.
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
)
|
||||
|
||||
func TestTokenize(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/micro/go-micro/v3/router"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/router"
|
||||
)
|
||||
|
||||
type apiRouter struct {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/micro/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -3,7 +3,7 @@ package scope
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/micro/go-micro/v3/store"
|
||||
"github.com/asim/go-micro/v3/store"
|
||||
)
|
||||
|
||||
// Scope extends the store, applying a prefix to each request
|
||||
|
||||
@@ -4,7 +4,7 @@ package socket
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/micro/go-micro/v3/network/transport"
|
||||
"github.com/asim/go-micro/v3/network/transport"
|
||||
)
|
||||
|
||||
// Socket is our pseudo socket for transport.Socket
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"context"
|
||||
"sync"
|
||||
|
||||
"github.com/micro/go-micro/v3/client"
|
||||
"github.com/micro/go-micro/v3/client/mucp"
|
||||
"github.com/micro/go-micro/v3/codec"
|
||||
"github.com/micro/go-micro/v3/metadata"
|
||||
"github.com/micro/go-micro/v3/server"
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
"github.com/asim/go-micro/v3/client/mucp"
|
||||
"github.com/asim/go-micro/v3/codec"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
"github.com/asim/go-micro/v3/server"
|
||||
)
|
||||
|
||||
type Stream interface {
|
||||
|
||||
@@ -3,7 +3,7 @@ package sync
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/store"
|
||||
"github.com/asim/go-micro/v3/store"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package sync
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/store"
|
||||
"github.com/asim/go-micro/v3/store"
|
||||
)
|
||||
|
||||
// Options represents Sync options
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/store"
|
||||
"github.com/ef-ds/deque"
|
||||
"github.com/micro/go-micro/v3/store"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/v3/registry"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/auth"
|
||||
"github.com/asim/go-micro/v3/store"
|
||||
"github.com/asim/go-micro/v3/util/token"
|
||||
"github.com/google/uuid"
|
||||
"github.com/micro/go-micro/v3/auth"
|
||||
"github.com/micro/go-micro/v3/store"
|
||||
"github.com/micro/go-micro/v3/util/token"
|
||||
)
|
||||
|
||||
// Basic implementation of token provider, backed by the store
|
||||
|
||||
@@ -3,9 +3,9 @@ package basic
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/micro/go-micro/v3/auth"
|
||||
"github.com/micro/go-micro/v3/store/memory"
|
||||
"github.com/micro/go-micro/v3/util/token"
|
||||
"github.com/asim/go-micro/v3/auth"
|
||||
"github.com/asim/go-micro/v3/store/memory"
|
||||
"github.com/asim/go-micro/v3/util/token"
|
||||
)
|
||||
|
||||
func TestGenerate(t *testing.T) {
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"encoding/base64"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/auth"
|
||||
"github.com/asim/go-micro/v3/util/token"
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/micro/go-micro/v3/auth"
|
||||
"github.com/micro/go-micro/v3/util/token"
|
||||
)
|
||||
|
||||
// authClaims to be encoded in the JWT
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/auth"
|
||||
"github.com/micro/go-micro/v3/util/token"
|
||||
"github.com/asim/go-micro/v3/auth"
|
||||
"github.com/asim/go-micro/v3/util/token"
|
||||
)
|
||||
|
||||
func TestGenerate(t *testing.T) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package token
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/store"
|
||||
"github.com/asim/go-micro/v3/store"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/v3/auth"
|
||||
"github.com/asim/go-micro/v3/auth"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user