mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
move proxy
This commit is contained in:
parent
35c59042bf
commit
43ff2a540d
12
cmd/cmd.go
12
cmd/cmd.go
@ -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]
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
@ -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"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user