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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -5,7 +5,7 @@ var (
package main
import (
"github.com/micro/go-micro/v3/plugin"
"github.com/asim/go-micro/v3/plugin"
"{{.Path}}"
)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/micro/go-micro/v3/logger"
"github.com/asim/go-micro/v3/logger"
)
var (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
package test
import (
"github.com/micro/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry"
)
var (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -4,7 +4,7 @@ import (
"errors"
"time"
"github.com/micro/go-micro/v3/auth"
"github.com/asim/go-micro/v3/auth"
)
var (