v3 refactor (#1868)

* Move to v3

Co-authored-by: Ben Toogood <bentoogood@gmail.com>
This commit is contained in:
Asim Aslam
2020-07-27 13:22:00 +01:00
committed by GitHub
parent 9dfeb98111
commit 563768b58a
424 changed files with 6383 additions and 22490 deletions

View File

@@ -1,12 +1,12 @@
package grpc
import (
"github.com/micro/go-micro/v2/client"
gclient "github.com/micro/go-micro/v2/client/grpc"
"github.com/micro/go-micro/v2/model"
"github.com/micro/go-micro/v2/server"
gserver "github.com/micro/go-micro/v2/server/grpc"
"github.com/micro/go-micro/v2/service"
"github.com/micro/go-micro/v3/client"
gclient "github.com/micro/go-micro/v3/client/grpc"
"github.com/micro/go-micro/v3/model"
"github.com/micro/go-micro/v3/server"
gserver "github.com/micro/go-micro/v3/server/grpc"
"github.com/micro/go-micro/v3/service"
)
type grpcService struct {

View File

@@ -7,10 +7,10 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v2/registry/memory"
"github.com/micro/go-micro/v2/service"
hello "github.com/micro/go-micro/v2/service/grpc/proto"
mls "github.com/micro/go-micro/v2/util/tls"
"github.com/micro/go-micro/v3/registry/memory"
"github.com/micro/go-micro/v3/service"
hello "github.com/micro/go-micro/v3/service/grpc/proto"
mls "github.com/micro/go-micro/v3/util/tls"
)
type testHandler struct{}

View File

@@ -3,9 +3,9 @@ package grpc
import (
"crypto/tls"
gc "github.com/micro/go-micro/v2/client/grpc"
gs "github.com/micro/go-micro/v2/server/grpc"
"github.com/micro/go-micro/v2/service"
gc "github.com/micro/go-micro/v3/client/grpc"
gs "github.com/micro/go-micro/v3/server/grpc"
"github.com/micro/go-micro/v3/service"
)
// WithTLS sets the TLS config for the service

View File

@@ -11,9 +11,9 @@ import (
import (
context "context"
api "github.com/micro/go-micro/v2/api"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
api "github.com/micro/go-micro/v3/api"
client "github.com/micro/go-micro/v3/client"
server "github.com/micro/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.