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

@@ -7,8 +7,8 @@ import (
"net"
"os"
"github.com/micro/go-micro/v3/acme"
"github.com/micro/go-micro/v3/logger"
"github.com/asim/go-micro/v3/acme"
"github.com/asim/go-micro/v3/logger"
"golang.org/x/crypto/acme/autocert"
)

View File

@@ -6,8 +6,8 @@ import (
"regexp"
"strings"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/server"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/server"
)
// Gateway is an api gateway interface

View File

@@ -9,9 +9,9 @@ import (
"net/http/httputil"
"net/url"
"github.com/micro/go-micro/v3/api"
"github.com/micro/go-micro/v3/api/handler"
"github.com/micro/go-micro/v3/registry"
"github.com/asim/go-micro/v3/api"
"github.com/asim/go-micro/v3/api/handler"
"github.com/asim/go-micro/v3/registry"
)
const (

View File

@@ -6,13 +6,13 @@ import (
"net/http/httptest"
"testing"
"github.com/micro/go-micro/v3/api/handler"
"github.com/micro/go-micro/v3/api/resolver"
rpath "github.com/micro/go-micro/v3/api/resolver/path"
"github.com/micro/go-micro/v3/api/router"
regRouter "github.com/micro/go-micro/v3/api/router/registry"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/registry/memory"
"github.com/asim/go-micro/v3/api/handler"
"github.com/asim/go-micro/v3/api/resolver"
rpath "github.com/asim/go-micro/v3/api/resolver/path"
"github.com/asim/go-micro/v3/api/router"
regRouter "github.com/asim/go-micro/v3/api/router/registry"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry/memory"
)
func testHttp(t *testing.T, path, service, ns string) {

View File

@@ -1,9 +1,9 @@
package handler
import (
"github.com/micro/go-micro/v3/api/router"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/client/grpc"
"github.com/asim/go-micro/v3/api/router"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/client/grpc"
)
var (

View File

@@ -8,20 +8,20 @@ import (
"strconv"
"strings"
"github.com/asim/go-micro/v3/api"
"github.com/asim/go-micro/v3/api/handler"
"github.com/asim/go-micro/v3/api/handler/rpc/proto"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec/jsonrpc"
"github.com/asim/go-micro/v3/codec/protorpc"
"github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/logger"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/util/ctx"
"github.com/asim/go-micro/v3/util/qson"
"github.com/asim/go-micro/v3/util/router"
jsonpatch "github.com/evanphx/json-patch/v5"
"github.com/micro/go-micro/v3/api"
"github.com/micro/go-micro/v3/api/handler"
"github.com/micro/go-micro/v3/api/handler/rpc/proto"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/codec/jsonrpc"
"github.com/micro/go-micro/v3/codec/protorpc"
"github.com/micro/go-micro/v3/errors"
"github.com/micro/go-micro/v3/logger"
"github.com/micro/go-micro/v3/metadata"
"github.com/micro/go-micro/v3/util/ctx"
"github.com/micro/go-micro/v3/util/qson"
"github.com/micro/go-micro/v3/util/router"
"github.com/oxtoacart/bpool"
)

View File

@@ -9,14 +9,14 @@ import (
"strings"
"time"
"github.com/asim/go-micro/v3/api"
"github.com/asim/go-micro/v3/client"
raw "github.com/asim/go-micro/v3/codec/bytes"
"github.com/asim/go-micro/v3/logger"
"github.com/asim/go-micro/v3/util/router"
"github.com/gobwas/httphead"
"github.com/gobwas/ws"
"github.com/gobwas/ws/wsutil"
"github.com/micro/go-micro/v3/api"
"github.com/micro/go-micro/v3/client"
raw "github.com/micro/go-micro/v3/codec/bytes"
"github.com/micro/go-micro/v3/logger"
"github.com/micro/go-micro/v3/util/router"
)
// serveWebsocket will stream rpc back over websockets assuming json

View File

@@ -7,8 +7,8 @@ import (
"net/http"
"sync"
"github.com/micro/go-micro/v3/api"
"github.com/micro/go-micro/v3/logger"
"github.com/asim/go-micro/v3/api"
"github.com/asim/go-micro/v3/logger"
)
type httpServer struct {

View File

@@ -3,8 +3,8 @@ package api
import (
"crypto/tls"
"github.com/micro/go-micro/v3/acme"
"github.com/micro/go-micro/v3/api/resolver"
"github.com/asim/go-micro/v3/acme"
"github.com/asim/go-micro/v3/api/resolver"
)
type Options struct {

View File

@@ -6,7 +6,7 @@ import (
"net/http"
"strings"
"github.com/micro/go-micro/v3/api/resolver"
"github.com/asim/go-micro/v3/api/resolver"
)
type Resolver struct {

View File

@@ -4,7 +4,7 @@ package host
import (
"net/http"
"github.com/micro/go-micro/v3/api/resolver"
"github.com/asim/go-micro/v3/api/resolver"
)
type Resolver struct {

View File

@@ -1,7 +1,7 @@
package resolver
import (
"github.com/micro/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry"
)
type Options struct {

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"strings"
"github.com/micro/go-micro/v3/api/resolver"
"github.com/asim/go-micro/v3/api/resolver"
)
type Resolver struct {

View File

@@ -1,10 +1,10 @@
package router
import (
"github.com/micro/go-micro/v3/api/resolver"
"github.com/micro/go-micro/v3/api/resolver/path"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/registry/mdns"
"github.com/asim/go-micro/v3/api/resolver"
"github.com/asim/go-micro/v3/api/resolver/path"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry/mdns"
)
type Options struct {

View File

@@ -10,13 +10,13 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v3/api"
"github.com/micro/go-micro/v3/api/router"
"github.com/micro/go-micro/v3/logger"
"github.com/micro/go-micro/v3/metadata"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/registry/cache"
util "github.com/micro/go-micro/v3/util/router"
"github.com/asim/go-micro/v3/api"
"github.com/asim/go-micro/v3/api/router"
"github.com/asim/go-micro/v3/logger"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry/cache"
util "github.com/asim/go-micro/v3/util/router"
)
// endpoint struct, that holds compiled pcre

View File

@@ -3,7 +3,7 @@ package registry
import (
"testing"
"github.com/micro/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry"
"github.com/stretchr/testify/assert"
)

View File

@@ -4,7 +4,7 @@ package router
import (
"net/http"
"github.com/micro/go-micro/v3/api"
"github.com/asim/go-micro/v3/api"
)
// Router is used to determine an endpoint for a request

View File

@@ -9,18 +9,18 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/api/handler"
"github.com/micro/go-micro/v3/api/handler/rpc"
"github.com/micro/go-micro/v3/api/router"
rregistry "github.com/micro/go-micro/v3/api/router/registry"
"github.com/micro/go-micro/v3/client"
gcli "github.com/micro/go-micro/v3/client/grpc"
rmemory "github.com/micro/go-micro/v3/registry/memory"
rt "github.com/micro/go-micro/v3/router"
regRouter "github.com/micro/go-micro/v3/router/registry"
"github.com/micro/go-micro/v3/server"
gsrv "github.com/micro/go-micro/v3/server/grpc"
pb "github.com/micro/go-micro/v3/server/grpc/proto"
"github.com/asim/go-micro/v3/api/handler"
"github.com/asim/go-micro/v3/api/handler/rpc"
"github.com/asim/go-micro/v3/api/router"
rregistry "github.com/asim/go-micro/v3/api/router/registry"
"github.com/asim/go-micro/v3/client"
gcli "github.com/asim/go-micro/v3/client/grpc"
rmemory "github.com/asim/go-micro/v3/registry/memory"
rt "github.com/asim/go-micro/v3/router"
regRouter "github.com/asim/go-micro/v3/router/registry"
"github.com/asim/go-micro/v3/server"
gsrv "github.com/asim/go-micro/v3/server/grpc"
pb "github.com/asim/go-micro/v3/server/grpc/proto"
)
// server is used to implement helloworld.GreeterServer.

View File

@@ -5,9 +5,9 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v3/auth"
"github.com/micro/go-micro/v3/util/token"
"github.com/micro/go-micro/v3/util/token/jwt"
"github.com/asim/go-micro/v3/auth"
"github.com/asim/go-micro/v3/util/token"
"github.com/asim/go-micro/v3/util/token/jwt"
)
// NewAuth returns a new instance of the Auth service

View File

@@ -1,8 +1,8 @@
package noop
import (
"github.com/asim/go-micro/v3/auth"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/auth"
)
func NewAuth(opts ...auth.Option) auth.Auth {

View File

@@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/micro/go-micro/v3/store"
"github.com/asim/go-micro/v3/store"
)
func NewOptions(opts ...Option) Options {

View File

@@ -17,16 +17,16 @@ import (
"sync"
"time"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/codec/json"
merr "github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry/cache"
"github.com/asim/go-micro/v3/registry/mdns"
maddr "github.com/asim/go-micro/v3/util/addr"
mnet "github.com/asim/go-micro/v3/util/net"
mls "github.com/asim/go-micro/v3/util/tls"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/broker"
"github.com/micro/go-micro/v3/codec/json"
merr "github.com/micro/go-micro/v3/errors"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/registry/cache"
"github.com/micro/go-micro/v3/registry/mdns"
maddr "github.com/micro/go-micro/v3/util/addr"
mnet "github.com/micro/go-micro/v3/util/net"
mls "github.com/micro/go-micro/v3/util/tls"
"golang.org/x/net/http2"
)

View File

@@ -5,10 +5,10 @@ import (
"testing"
"time"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/registry/memory"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/broker"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/registry/memory"
)
var (

View File

@@ -4,7 +4,7 @@ import (
"context"
"net/http"
"github.com/micro/go-micro/v3/broker"
"github.com/asim/go-micro/v3/broker"
)
// Handle registers the handler for the given pattern.

View File

@@ -8,10 +8,10 @@ import (
"sync"
"time"
"github.com/asim/go-micro/v3/broker"
maddr "github.com/asim/go-micro/v3/util/addr"
mnet "github.com/asim/go-micro/v3/util/net"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/broker"
maddr "github.com/micro/go-micro/v3/util/addr"
mnet "github.com/micro/go-micro/v3/util/net"
)
type memoryBroker struct {

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/micro/go-micro/v3/broker"
"github.com/asim/go-micro/v3/broker"
)
func TestMemoryBroker(t *testing.T) {

View File

@@ -4,8 +4,8 @@ import (
"context"
"crypto/tls"
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/registry"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/registry"
)
type Options struct {

View File

@@ -6,7 +6,7 @@ import (
"os/exec"
"path/filepath"
"github.com/micro/go-micro/v3/build"
"github.com/asim/go-micro/v3/build"
)
type goBuild struct {

View File

@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"github.com/micro/go-micro/v3/build"
"github.com/asim/go-micro/v3/build"
)
type tarBuild struct{}

View File

@@ -4,8 +4,8 @@ package memory
import (
"sync"
"github.com/micro/go-micro/v3/cache"
"github.com/micro/go-micro/v3/errors"
"github.com/asim/go-micro/v3/cache"
"github.com/asim/go-micro/v3/errors"
)
type memoryCache struct {

View File

@@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/micro/go-micro/v3/util/backoff"
"github.com/asim/go-micro/v3/util/backoff"
)
type BackoffFunc func(ctx context.Context, req Request, attempts int) (time.Duration, error)

View File

@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
func TestBackoff(t *testing.T) {

View File

@@ -5,7 +5,7 @@ import (
"context"
"time"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
// Client is the interface used to make requests to services.

View File

@@ -1,6 +1,6 @@
# GRPC Client
The grpc client is a [micro.Client](https://godoc.org/github.com/micro/go-micro/client#Client) compatible client.
The grpc client is a [micro.Client](https://godoc.org/github.com/asim/go-micro/client#Client) compatible client.
## Overview
@@ -12,7 +12,7 @@ Specify the client to your micro service
```go
import (
"github.com/micro/go-micro"
"github.com/asim/go-micro"
"github.com/micro/go-plugins/client/grpc"
)

View File

@@ -7,10 +7,10 @@ import (
b "bytes"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec/bytes"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/codec/bytes"
"github.com/oxtoacart/bpool"
"google.golang.org/grpc"
"google.golang.org/grpc/encoding"

View File

@@ -1,7 +1,7 @@
package grpc
import (
"github.com/micro/go-micro/v3/errors"
"github.com/asim/go-micro/v3/errors"
"google.golang.org/grpc/status"
)

View File

@@ -11,11 +11,11 @@ import (
"sync/atomic"
"time"
"github.com/micro/go-micro/v3/broker"
"github.com/micro/go-micro/v3/client"
raw "github.com/micro/go-micro/v3/codec/bytes"
"github.com/micro/go-micro/v3/errors"
"github.com/micro/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/client"
raw "github.com/asim/go-micro/v3/codec/bytes"
"github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/metadata"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"

View File

@@ -5,12 +5,12 @@ import (
"net"
"testing"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/errors"
"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/client"
"github.com/asim/go-micro/v3/errors"
"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"
pgrpc "google.golang.org/grpc"
pb "google.golang.org/grpc/examples/helloworld/helloworld"
)

View File

@@ -1,7 +1,7 @@
package grpc
import (
"github.com/micro/go-micro/v3/client"
"github.com/asim/go-micro/v3/client"
)
type grpcEvent struct {

View File

@@ -5,7 +5,7 @@ import (
"context"
"crypto/tls"
"github.com/micro/go-micro/v3/client"
"github.com/asim/go-micro/v3/client"
"google.golang.org/grpc"
"google.golang.org/grpc/encoding"
)

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/codec"
)
type grpcRequest struct {

View File

@@ -3,8 +3,8 @@ package grpc
import (
"strings"
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/codec/bytes"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec/bytes"
"google.golang.org/grpc"
"google.golang.org/grpc/encoding"
)

View File

@@ -5,7 +5,7 @@ import (
"io"
"sync"
"github.com/micro/go-micro/v3/client"
"github.com/asim/go-micro/v3/client"
"google.golang.org/grpc"
)

View File

@@ -4,8 +4,8 @@ import (
"context"
"sort"
"github.com/micro/go-micro/v3/errors"
"github.com/micro/go-micro/v3/router"
"github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/router"
)
// LookupFunc is used to lookup routes for a service

View File

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

View File

@@ -7,16 +7,16 @@ import (
"sync/atomic"
"time"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/codec"
raw "github.com/asim/go-micro/v3/codec/bytes"
"github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/network/transport"
"github.com/asim/go-micro/v3/util/buf"
"github.com/asim/go-micro/v3/util/pool"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/broker"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/codec"
raw "github.com/micro/go-micro/v3/codec/bytes"
"github.com/micro/go-micro/v3/errors"
"github.com/micro/go-micro/v3/metadata"
"github.com/micro/go-micro/v3/network/transport"
"github.com/micro/go-micro/v3/util/buf"
"github.com/micro/go-micro/v3/util/pool"
)
type rpcClient struct {

View File

@@ -4,16 +4,16 @@ import (
"bytes"
errs "errors"
"github.com/micro/go-micro/v3/codec"
raw "github.com/micro/go-micro/v3/codec/bytes"
"github.com/micro/go-micro/v3/codec/grpc"
"github.com/micro/go-micro/v3/codec/json"
"github.com/micro/go-micro/v3/codec/jsonrpc"
"github.com/micro/go-micro/v3/codec/proto"
"github.com/micro/go-micro/v3/codec/protorpc"
"github.com/micro/go-micro/v3/errors"
"github.com/micro/go-micro/v3/network/transport"
"github.com/micro/go-micro/v3/registry"
"github.com/asim/go-micro/v3/codec"
raw "github.com/asim/go-micro/v3/codec/bytes"
"github.com/asim/go-micro/v3/codec/grpc"
"github.com/asim/go-micro/v3/codec/json"
"github.com/asim/go-micro/v3/codec/jsonrpc"
"github.com/asim/go-micro/v3/codec/proto"
"github.com/asim/go-micro/v3/codec/protorpc"
"github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/network/transport"
"github.com/asim/go-micro/v3/registry"
)
const (

View File

@@ -1,7 +1,7 @@
package mucp
import (
"github.com/micro/go-micro/v3/client"
"github.com/asim/go-micro/v3/client"
)
type message struct {

View File

@@ -1,8 +1,8 @@
package mucp
import (
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/codec"
)
type rpcRequest struct {

View File

@@ -3,7 +3,7 @@ package mucp
import (
"testing"
"github.com/micro/go-micro/v3/client"
"github.com/asim/go-micro/v3/client"
)
func TestRequestOptions(t *testing.T) {

View File

@@ -1,8 +1,8 @@
package mucp
import (
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/network/transport"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/network/transport"
)
type rpcResponse struct {

View File

@@ -5,8 +5,8 @@ import (
"io"
"sync"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/codec"
)
// Implements the streamer interface

View File

@@ -5,12 +5,12 @@ import (
"fmt"
"testing"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/errors"
"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/client"
"github.com/asim/go-micro/v3/errors"
"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 newTestRouter() router.Router {

View File

@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/network/transport"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/network/transport"
)
func TestCallOptions(t *testing.T) {

View File

@@ -4,16 +4,16 @@ import (
"context"
"time"
"github.com/micro/go-micro/v3/broker"
"github.com/micro/go-micro/v3/broker/http"
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/network/transport"
thttp "github.com/micro/go-micro/v3/network/transport/http"
"github.com/micro/go-micro/v3/registry"
"github.com/micro/go-micro/v3/router"
regRouter "github.com/micro/go-micro/v3/router/registry"
"github.com/micro/go-micro/v3/selector"
"github.com/micro/go-micro/v3/selector/roundrobin"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/broker/http"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/network/transport"
thttp "github.com/asim/go-micro/v3/network/transport/http"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/router"
regRouter "github.com/asim/go-micro/v3/router/registry"
"github.com/asim/go-micro/v3/selector"
"github.com/asim/go-micro/v3/selector/roundrobin"
)
type Options struct {

View File

@@ -4,7 +4,7 @@ import (
"context"
"net/http"
"github.com/micro/go-micro/v3/errors"
"github.com/asim/go-micro/v3/errors"
)
// note that returning either false or a non-nil error will result in the call not being retried

View File

@@ -6,7 +6,7 @@ import (
"io"
"io/ioutil"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
type Codec struct {

View File

@@ -1,7 +1,7 @@
package bytes
import (
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
type Marshaler struct{}

View File

@@ -4,14 +4,14 @@ import (
"io"
"testing"
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/codec/bytes"
"github.com/micro/go-micro/v3/codec/grpc"
"github.com/micro/go-micro/v3/codec/json"
"github.com/micro/go-micro/v3/codec/jsonrpc"
"github.com/micro/go-micro/v3/codec/proto"
"github.com/micro/go-micro/v3/codec/protorpc"
"github.com/micro/go-micro/v3/codec/text"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec/bytes"
"github.com/asim/go-micro/v3/codec/grpc"
"github.com/asim/go-micro/v3/codec/json"
"github.com/asim/go-micro/v3/codec/jsonrpc"
"github.com/asim/go-micro/v3/codec/proto"
"github.com/asim/go-micro/v3/codec/protorpc"
"github.com/asim/go-micro/v3/codec/text"
)
type testRWC struct{}

View File

@@ -8,8 +8,8 @@ import (
"io"
"strings"
"github.com/asim/go-micro/v3/codec"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/v3/codec"
)
type Codec struct {

View File

@@ -5,9 +5,9 @@ import (
"encoding/json"
"io"
"github.com/asim/go-micro/v3/codec"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/v3/codec"
)
type Codec struct {

View File

@@ -6,7 +6,7 @@ import (
"io"
"sync"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
type clientCodec struct {

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"io"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
type jsonCodec struct {

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"io"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
type serverCodec struct {

View File

@@ -3,8 +3,8 @@ package proto
import (
"bytes"
"github.com/asim/go-micro/v3/codec"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/v3/codec"
"github.com/oxtoacart/bpool"
)

View File

@@ -5,8 +5,8 @@ import (
"io"
"io/ioutil"
"github.com/asim/go-micro/v3/codec"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/v3/codec"
)
type Codec struct {

View File

@@ -8,8 +8,8 @@ import (
"strconv"
"sync"
"github.com/asim/go-micro/v3/codec"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/v3/codec"
)
type flusher interface {

View File

@@ -6,7 +6,7 @@ import (
"io"
"io/ioutil"
"github.com/micro/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec"
)
type Codec struct {

2
config/env/env.go vendored
View File

@@ -6,7 +6,7 @@ import (
"os"
"strings"
"github.com/micro/go-micro/v3/config"
"github.com/asim/go-micro/v3/config"
)
type envConfig struct{}

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"
"github.com/micro/go-micro/v3/config"
"github.com/asim/go-micro/v3/config"
)
// NewSecrets returns a config that encrypts values at rest

View File

@@ -4,8 +4,8 @@ import (
"encoding/json"
"strings"
"github.com/micro/go-micro/v3/config"
"github.com/micro/go-micro/v3/store"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/store"
)
// NewConfig returns new config

View File

@@ -4,9 +4,9 @@ import (
"reflect"
"testing"
"github.com/micro/go-micro/v3/config"
"github.com/micro/go-micro/v3/config/secrets"
"github.com/micro/go-micro/v3/store/memory"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/config/secrets"
"github.com/asim/go-micro/v3/store/memory"
)
type conf1 struct {

View File

@@ -1,4 +1,4 @@
// Package kubernetes is a logger implementing (github.com/micro/go-micro/v3/debug/log).Log
// Package kubernetes is a logger implementing (github.com/asim/go-micro/v3/debug/log).Log
package kubernetes
import (
@@ -10,8 +10,8 @@ import (
"strconv"
"time"
"github.com/micro/go-micro/v3/debug/log"
"github.com/micro/go-micro/v3/util/kubernetes/client"
"github.com/asim/go-micro/v3/debug/log"
"github.com/asim/go-micro/v3/util/kubernetes/client"
)
type klog struct {

View File

@@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/debug/log"
"github.com/asim/go-micro/v3/debug/log"
"github.com/stretchr/testify/assert"
)

View File

@@ -6,7 +6,7 @@ import (
"os"
"sync"
"github.com/micro/go-micro/v3/debug/log"
"github.com/asim/go-micro/v3/debug/log"
)
func write(l log.Record) error {

View File

@@ -4,8 +4,8 @@ package memory
import (
"fmt"
"github.com/micro/go-micro/v3/debug/log"
"github.com/micro/go-micro/v3/util/ring"
"github.com/asim/go-micro/v3/debug/log"
"github.com/asim/go-micro/v3/util/ring"
)
// memoryLog is default micro log

View File

@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/micro/go-micro/v3/debug/log"
"github.com/asim/go-micro/v3/debug/log"
)
func TestLogger(t *testing.T) {

View File

@@ -1,7 +1,7 @@
package memory
import (
"github.com/micro/go-micro/v3/debug/log"
"github.com/asim/go-micro/v3/debug/log"
)
type logStream struct {

View File

@@ -1,7 +1,7 @@
package noop
import (
"github.com/micro/go-micro/v3/debug/log"
"github.com/asim/go-micro/v3/debug/log"
)
type noop struct{}

View File

@@ -7,7 +7,7 @@ import (
"net/http/pprof"
"sync"
"github.com/micro/go-micro/v3/debug/profile"
"github.com/asim/go-micro/v3/debug/profile"
)
type httpProfile struct {

View File

@@ -9,7 +9,7 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v3/debug/profile"
"github.com/asim/go-micro/v3/debug/profile"
)
type profiler struct {

View File

@@ -5,8 +5,8 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v3/debug/stats"
"github.com/micro/go-micro/v3/util/ring"
"github.com/asim/go-micro/v3/debug/stats"
"github.com/asim/go-micro/v3/util/ring"
)
type memoryStats struct {

View File

@@ -4,9 +4,9 @@ import (
"context"
"time"
"github.com/asim/go-micro/v3/debug/trace"
"github.com/asim/go-micro/v3/util/ring"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/debug/trace"
"github.com/micro/go-micro/v3/util/ring"
)
type Tracer struct {

View File

@@ -5,7 +5,7 @@ import (
"context"
"time"
"github.com/micro/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/metadata"
)
// Tracer is an interface for distributed tracing

View File

@@ -6,11 +6,11 @@ import (
"sync"
"time"
"github.com/asim/go-micro/v3/events"
"github.com/asim/go-micro/v3/logger"
"github.com/asim/go-micro/v3/store"
"github.com/asim/go-micro/v3/store/memory"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/events"
"github.com/micro/go-micro/v3/logger"
"github.com/micro/go-micro/v3/store"
"github.com/micro/go-micro/v3/store/memory"
"github.com/pkg/errors"
)

View File

@@ -3,7 +3,7 @@ package events
import (
"time"
"github.com/micro/go-micro/v3/store"
"github.com/asim/go-micro/v3/store"
)
// Options which are used to configure the in-memory stream

View File

@@ -7,8 +7,8 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/events"
"github.com/micro/go-micro/v3/events/memory"
"github.com/asim/go-micro/v3/events"
"github.com/asim/go-micro/v3/events/memory"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/micro/go-micro/v3
module github.com/asim/go-micro/v3
go 1.13

View File

@@ -2,9 +2,9 @@
package model
import (
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/store"
"github.com/micro/go-micro/v3/sync"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/store"
"github.com/asim/go-micro/v3/sync"
)
// Model provides an interface for data modelling

View File

@@ -1,9 +1,9 @@
package mud
import (
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/model"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/codec"
"github.com/micro/go-micro/v3/model"
)
type mudEntity struct {

View File

@@ -2,11 +2,11 @@
package mud
import (
"github.com/micro/go-micro/v3/codec/json"
"github.com/micro/go-micro/v3/model"
"github.com/micro/go-micro/v3/store"
"github.com/micro/go-micro/v3/store/memory"
memsync "github.com/micro/go-micro/v3/sync/memory"
"github.com/asim/go-micro/v3/codec/json"
"github.com/asim/go-micro/v3/model"
"github.com/asim/go-micro/v3/store"
"github.com/asim/go-micro/v3/store/memory"
memsync "github.com/asim/go-micro/v3/sync/memory"
)
type mudModel struct {

View File

@@ -10,23 +10,23 @@ import (
"sync"
"time"
"github.com/asim/go-micro/v3/client"
cmucp "github.com/asim/go-micro/v3/client/mucp"
"github.com/asim/go-micro/v3/logger"
"github.com/asim/go-micro/v3/network"
pb "github.com/asim/go-micro/v3/network/mucp/proto"
"github.com/asim/go-micro/v3/network/resolver/dns"
"github.com/asim/go-micro/v3/network/transport"
"github.com/asim/go-micro/v3/network/tunnel"
bun "github.com/asim/go-micro/v3/network/tunnel/broker"
tun "github.com/asim/go-micro/v3/network/tunnel/transport"
"github.com/asim/go-micro/v3/proxy"
"github.com/asim/go-micro/v3/registry/noop"
"github.com/asim/go-micro/v3/router"
"github.com/asim/go-micro/v3/server"
smucp "github.com/asim/go-micro/v3/server/mucp"
"github.com/asim/go-micro/v3/util/backoff"
"github.com/golang/protobuf/proto"
"github.com/micro/go-micro/v3/client"
cmucp "github.com/micro/go-micro/v3/client/mucp"
"github.com/micro/go-micro/v3/logger"
"github.com/micro/go-micro/v3/network"
pb "github.com/micro/go-micro/v3/network/mucp/proto"
"github.com/micro/go-micro/v3/network/resolver/dns"
"github.com/micro/go-micro/v3/network/transport"
"github.com/micro/go-micro/v3/network/tunnel"
bun "github.com/micro/go-micro/v3/network/tunnel/broker"
tun "github.com/micro/go-micro/v3/network/tunnel/transport"
"github.com/micro/go-micro/v3/proxy"
"github.com/micro/go-micro/v3/registry/noop"
"github.com/micro/go-micro/v3/router"
"github.com/micro/go-micro/v3/server"
smucp "github.com/micro/go-micro/v3/server/mucp"
"github.com/micro/go-micro/v3/util/backoff"
)
var (

View File

@@ -6,8 +6,8 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v3/network"
pb "github.com/micro/go-micro/v3/network/mucp/proto"
"github.com/asim/go-micro/v3/network"
pb "github.com/asim/go-micro/v3/network/mucp/proto"
)
// nodeError tracks node errors

View File

@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v3/network"
pb "github.com/micro/go-micro/v3/network/mucp/proto"
"github.com/asim/go-micro/v3/network"
pb "github.com/asim/go-micro/v3/network/mucp/proto"
)
var (

View File

@@ -2,7 +2,7 @@
// versions:
// protoc-gen-go v1.22.0
// protoc v3.11.4
// source: github.com/micro/go-micro/network/mucp/proto/network.proto
// source: github.com/asim/go-micro/network/mucp/proto/network.proto
package go_micro_network_mucp

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/go-micro/network/mucp/proto/network.proto
// source: github.com/asim/go-micro/network/mucp/proto/network.proto
package go_micro_network_mucp

View File

@@ -2,8 +2,8 @@
package network
import (
"github.com/micro/go-micro/v3/client"
"github.com/micro/go-micro/v3/server"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/server"
)
// Network is micro network

View File

@@ -1,13 +1,13 @@
package network
import (
"github.com/asim/go-micro/v3/network/tunnel"
tmucp "github.com/asim/go-micro/v3/network/tunnel/mucp"
"github.com/asim/go-micro/v3/proxy"
"github.com/asim/go-micro/v3/proxy/mucp"
"github.com/asim/go-micro/v3/router"
regRouter "github.com/asim/go-micro/v3/router/registry"
"github.com/google/uuid"
"github.com/micro/go-micro/v3/network/tunnel"
tmucp "github.com/micro/go-micro/v3/network/tunnel/mucp"
"github.com/micro/go-micro/v3/proxy"
"github.com/micro/go-micro/v3/proxy/mucp"
"github.com/micro/go-micro/v3/router"
regRouter "github.com/micro/go-micro/v3/router/registry"
)
type Option func(*Options)

View File

@@ -5,7 +5,7 @@ import (
"context"
"net"
"github.com/micro/go-micro/v3/network/resolver"
"github.com/asim/go-micro/v3/network/resolver"
"github.com/miekg/dns"
)

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"net"
"github.com/micro/go-micro/v3/network/resolver"
"github.com/asim/go-micro/v3/network/resolver"
)
// Resolver is a DNS network resolve

Some files were not shown because too many files have changed in this diff Show More