micro/util/http/options.go
Vasiliy Tolstov 06136312bb
regen files with never protoc (#6)
* regen files with never protoc
* rewrite import path

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-19 17:47:17 +03:00

16 lines
228 B
Go

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