1
0
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:
Vasiliy Tolstov
2020-01-30 14:39:00 +03:00
parent 2b1e0a6fd6
commit f23638c036
347 changed files with 864 additions and 820 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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