mirror of
https://github.com/go-micro/go-micro.git
synced 2025-09-16 08:36:30 +02:00
fix import paths for v2 release
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package grpc
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/client"
|
||||
gclient "github.com/micro/go-micro/client/grpc"
|
||||
"github.com/micro/go-micro/server"
|
||||
gserver "github.com/micro/go-micro/server/grpc"
|
||||
"github.com/micro/go-micro/service"
|
||||
"github.com/micro/go-micro/v2/client"
|
||||
gclient "github.com/micro/go-micro/v2/client/grpc"
|
||||
"github.com/micro/go-micro/v2/server"
|
||||
gserver "github.com/micro/go-micro/v2/server/grpc"
|
||||
"github.com/micro/go-micro/v2/service"
|
||||
)
|
||||
|
||||
type grpcService struct {
|
||||
|
@@ -7,10 +7,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/registry/memory"
|
||||
"github.com/micro/go-micro/service"
|
||||
hello "github.com/micro/go-micro/service/grpc/proto"
|
||||
mls "github.com/micro/go-micro/util/tls"
|
||||
"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"
|
||||
)
|
||||
|
||||
type testHandler struct{}
|
||||
|
@@ -3,9 +3,9 @@ package grpc
|
||||
import (
|
||||
"crypto/tls"
|
||||
|
||||
gc "github.com/micro/go-micro/client/grpc"
|
||||
gs "github.com/micro/go-micro/server/grpc"
|
||||
"github.com/micro/go-micro/service"
|
||||
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"
|
||||
)
|
||||
|
||||
// WithTLS sets the TLS config for the service
|
||||
|
@@ -11,8 +11,8 @@ import (
|
||||
|
||||
import (
|
||||
context "context"
|
||||
client "github.com/micro/go-micro/client"
|
||||
server "github.com/micro/go-micro/server"
|
||||
client "github.com/micro/go-micro/v2/client"
|
||||
server "github.com/micro/go-micro/v2/server"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@@ -2,11 +2,11 @@
|
||||
package mucp
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/client"
|
||||
cmucp "github.com/micro/go-micro/client/mucp"
|
||||
"github.com/micro/go-micro/server"
|
||||
smucp "github.com/micro/go-micro/server/mucp"
|
||||
"github.com/micro/go-micro/service"
|
||||
"github.com/micro/go-micro/v2/client"
|
||||
cmucp "github.com/micro/go-micro/v2/client/mucp"
|
||||
"github.com/micro/go-micro/v2/server"
|
||||
smucp "github.com/micro/go-micro/v2/server/mucp"
|
||||
"github.com/micro/go-micro/v2/service"
|
||||
)
|
||||
|
||||
type mucpService struct {
|
||||
|
@@ -4,11 +4,11 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/broker"
|
||||
"github.com/micro/go-micro/client"
|
||||
"github.com/micro/go-micro/registry"
|
||||
"github.com/micro/go-micro/server"
|
||||
"github.com/micro/go-micro/transport"
|
||||
"github.com/micro/go-micro/v2/broker"
|
||||
"github.com/micro/go-micro/v2/client"
|
||||
"github.com/micro/go-micro/v2/registry"
|
||||
"github.com/micro/go-micro/v2/server"
|
||||
"github.com/micro/go-micro/v2/transport"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
|
@@ -2,8 +2,8 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/client"
|
||||
"github.com/micro/go-micro/server"
|
||||
"github.com/micro/go-micro/v2/client"
|
||||
"github.com/micro/go-micro/v2/server"
|
||||
)
|
||||
|
||||
// Service is an interface for a micro service
|
||||
|
Reference in New Issue
Block a user