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

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