Deprecate client/selector (#1767)
* client/{grpc,rpc}: depricate selector (wip)
* {client,cmd}: remove client/selector
* deprecate client/selector
* router/static: fix lookup
* config/cmd: add support for legacy static selector flag
* config/cmd: add support for legacy dns selector flag
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/v2/registry"
|
||||
)
|
||||
import "github.com/micro/go-micro/v2/router"
|
||||
|
||||
type Options struct {
|
||||
Registry registry.Registry
|
||||
Router router.Router
|
||||
}
|
||||
|
||||
type Option func(*Options)
|
||||
|
||||
func WithRegistry(r registry.Registry) Option {
|
||||
func WithRouter(r router.Router) Option {
|
||||
return func(o *Options) {
|
||||
o.Registry = r
|
||||
o.Router = r
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user