update all deps to latest versions
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -11,9 +11,9 @@ import (
|
||||
"github.com/unistack-org/micro/v3/client"
|
||||
"github.com/unistack-org/micro/v3/client/grpc"
|
||||
tmemory "github.com/unistack-org/micro/v3/network/transport/memory"
|
||||
rmemory "github.com/unistack-org/micro/v3/registry/memory"
|
||||
rmemory "github.com/unistack-org/micro/v3/register/memory"
|
||||
"github.com/unistack-org/micro/v3/router"
|
||||
rtreg "github.com/unistack-org/micro/v3/router/registry"
|
||||
rtreg "github.com/unistack-org/micro/v3/router/register"
|
||||
"github.com/unistack-org/micro/v3/server"
|
||||
grpcsrv "github.com/unistack-org/micro/v3/server/grpc"
|
||||
cw "github.com/unistack-org/micro/v3/util/client"
|
||||
@@ -44,14 +44,14 @@ func TestStaticClient(t *testing.T) {
|
||||
)
|
||||
rsp := &TestRsp{}
|
||||
|
||||
reg := rmemory.NewRegistry()
|
||||
brk := bmemory.NewBroker(broker.Registry(reg))
|
||||
reg := rmemory.NewRegister()
|
||||
brk := bmemory.NewBroker(broker.Register(reg))
|
||||
tr := tmemory.NewTransport()
|
||||
rtr := rtreg.NewRouter(router.Registry(reg))
|
||||
rtr := rtreg.NewRouter(router.Register(reg))
|
||||
|
||||
srv := grpcsrv.NewServer(
|
||||
server.Broker(brk),
|
||||
server.Registry(reg),
|
||||
server.Register(reg),
|
||||
server.Name("go.micro.service.foo"),
|
||||
server.Address("127.0.0.1:0"),
|
||||
server.Transport(tr),
|
||||
|
@@ -10,12 +10,12 @@ import (
|
||||
|
||||
grpc "github.com/unistack-org/micro-client-grpc/v3"
|
||||
protocodec "github.com/unistack-org/micro-codec-proto/v3"
|
||||
rmemory "github.com/unistack-org/micro-registry-memory/v3"
|
||||
regRouter "github.com/unistack-org/micro-router-registry/v3"
|
||||
rmemory "github.com/unistack-org/micro-register-memory/v3"
|
||||
regRouter "github.com/unistack-org/micro-router-register/v3"
|
||||
pb "github.com/unistack-org/micro-tests/client/grpc/proto"
|
||||
"github.com/unistack-org/micro/v3/client"
|
||||
"github.com/unistack-org/micro/v3/errors"
|
||||
"github.com/unistack-org/micro/v3/registry"
|
||||
"github.com/unistack-org/micro/v3/register"
|
||||
"github.com/unistack-org/micro/v3/router"
|
||||
pgrpc "google.golang.org/grpc"
|
||||
"google.golang.org/grpc/codes"
|
||||
@@ -71,14 +71,14 @@ func TestGRPCClient(t *testing.T) {
|
||||
}()
|
||||
defer s.Stop()
|
||||
|
||||
// create mock registry
|
||||
r := rmemory.NewRegistry()
|
||||
// create mock register
|
||||
r := rmemory.NewRegister()
|
||||
|
||||
// register service
|
||||
if err := r.Register(ctx, ®istry.Service{
|
||||
if err := r.Register(ctx, ®ister.Service{
|
||||
Name: "helloworld",
|
||||
Version: "test",
|
||||
Nodes: []*registry.Node{
|
||||
Nodes: []*register.Node{
|
||||
{
|
||||
Id: "test-1",
|
||||
Address: l.Addr().String(),
|
||||
@@ -92,7 +92,7 @@ func TestGRPCClient(t *testing.T) {
|
||||
}
|
||||
|
||||
// create router
|
||||
rtr := regRouter.NewRouter(router.Registry(r))
|
||||
rtr := regRouter.NewRouter(router.Register(r))
|
||||
|
||||
// create client
|
||||
c := grpc.NewClient(client.Codec("application/grpc+proto", protocodec.NewCodec()), client.Router(rtr))
|
||||
|
@@ -13,12 +13,12 @@ import (
|
||||
|
||||
mhttp "github.com/unistack-org/micro-client-http/v3"
|
||||
jsoncodec "github.com/unistack-org/micro-codec-json/v3"
|
||||
rmemory "github.com/unistack-org/micro-registry-memory/v3"
|
||||
rrouter "github.com/unistack-org/micro-router-registry/v3"
|
||||
rmemory "github.com/unistack-org/micro-register-memory/v3"
|
||||
rrouter "github.com/unistack-org/micro-router-register/v3"
|
||||
pb "github.com/unistack-org/micro-tests/client/http/proto"
|
||||
"github.com/unistack-org/micro/v3/client"
|
||||
"github.com/unistack-org/micro/v3/codec"
|
||||
"github.com/unistack-org/micro/v3/registry"
|
||||
"github.com/unistack-org/micro/v3/register"
|
||||
"github.com/unistack-org/micro/v3/router"
|
||||
)
|
||||
|
||||
@@ -77,8 +77,8 @@ func TestNative(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHTTPClient(t *testing.T) {
|
||||
reg := rmemory.NewRegistry()
|
||||
rtr := rrouter.NewRouter(router.Registry(reg))
|
||||
reg := rmemory.NewRegister()
|
||||
rtr := rrouter.NewRouter(router.Register(reg))
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
@@ -129,9 +129,9 @@ func TestHTTPClient(t *testing.T) {
|
||||
})
|
||||
go http.Serve(l, mux)
|
||||
|
||||
if err := reg.Register(ctx, ®istry.Service{
|
||||
if err := reg.Register(ctx, ®ister.Service{
|
||||
Name: "test.service",
|
||||
Nodes: []*registry.Node{
|
||||
Nodes: []*register.Node{
|
||||
{
|
||||
Id: "test.service.1",
|
||||
Address: l.Addr().String(),
|
||||
@@ -164,8 +164,8 @@ func TestHTTPClient(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHTTPClientStream(t *testing.T) {
|
||||
reg := rmemory.NewRegistry()
|
||||
rtr := rrouter.NewRouter(router.Registry(reg))
|
||||
reg := rmemory.NewRegister()
|
||||
rtr := rrouter.NewRouter(router.Register(reg))
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
@@ -291,9 +291,9 @@ func TestHTTPClientStream(t *testing.T) {
|
||||
})
|
||||
go http.Serve(l, mux)
|
||||
|
||||
if err := reg.Register(ctx, ®istry.Service{
|
||||
if err := reg.Register(ctx, ®ister.Service{
|
||||
Name: "test.service",
|
||||
Nodes: []*registry.Node{
|
||||
Nodes: []*register.Node{
|
||||
{
|
||||
Id: "test.service.1",
|
||||
Address: l.Addr().String(),
|
||||
|
Reference in New Issue
Block a user