1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

move proxy

This commit is contained in:
Asim Aslam 2020-12-12 19:02:04 +00:00
parent 35c59042bf
commit 43ff2a540d
10 changed files with 7 additions and 19 deletions

View File

@ -553,18 +553,6 @@ func (c *cmd) Before(ctx *cli.Context) error {
authOpts = append(authOpts, auth.Provider(p(provOpts...)))
}
// Set the auth
if name := ctx.String("auth"); len(name) > 0 {
a, ok := c.opts.Auths[name]
if !ok {
return fmt.Errorf("Unsupported auth: %s", name)
}
*c.opts.Auth = a(authOpts...)
serverOpts = append(serverOpts, server.Auth(*c.opts.Auth))
} else {
(*c.opts.Auth).Init(authOpts...)
}
// Set the registry
if name := ctx.String("registry"); len(name) > 0 && (*c.opts.Registry).String() != name {
r, ok := c.opts.Registries[name]

View File

@ -21,7 +21,7 @@ import (
"github.com/micro/go-micro/v2/network/tunnel"
bun "github.com/micro/go-micro/v2/network/tunnel/broker"
tun "github.com/micro/go-micro/v2/network/tunnel/transport"
"github.com/micro/go-micro/v2/proxy"
"github.com/micro/go-micro/v2/network/proxy"
"github.com/micro/go-micro/v2/router"
"github.com/micro/go-micro/v2/server"
smucp "github.com/micro/go-micro/v2/server/mucp"

View File

@ -5,8 +5,8 @@ import (
"github.com/micro/go-micro/v2/network/resolver"
"github.com/micro/go-micro/v2/network/resolver/registry"
"github.com/micro/go-micro/v2/network/tunnel"
"github.com/micro/go-micro/v2/proxy"
"github.com/micro/go-micro/v2/proxy/mucp"
"github.com/micro/go-micro/v2/network/proxy"
"github.com/micro/go-micro/v2/network/proxy/mucp"
"github.com/micro/go-micro/v2/router"
)

View File

@ -9,7 +9,7 @@ import (
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/grpc"
"github.com/micro/go-micro/v2/codec"
"github.com/micro/go-micro/v2/proxy"
"github.com/micro/go-micro/v2/network/proxy"
"github.com/micro/go-micro/v2/server"
)

View File

@ -11,7 +11,7 @@ import (
"path"
"github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/proxy"
"github.com/micro/go-micro/v2/network/proxy"
"github.com/micro/go-micro/v2/server"
)

View File

@ -17,7 +17,7 @@ import (
"github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/logger"
"github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/proxy"
"github.com/micro/go-micro/v2/network/proxy"
"github.com/micro/go-micro/v2/router"
"github.com/micro/go-micro/v2/server"
)

View File

@ -7,7 +7,7 @@ import (
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/debug/service/handler"
"github.com/micro/go-micro/v2/proxy"
"github.com/micro/go-micro/v2/network/proxy"
"github.com/micro/go-micro/v2/server"
)