micro/util/http/options.go
ben-toogood 174e44b846
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
2020-07-01 17:06:59 +01:00

16 lines
224 B
Go

package http
import "github.com/micro/go-micro/v2/router"
type Options struct {
Router router.Router
}
type Option func(*Options)
func WithRouter(r router.Router) Option {
return func(o *Options) {
o.Router = r
}
}