micro/util/http/options.go
Vasiliy Tolstov 5eb0e56373 move all imports to own domain
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-10-02 19:55:07 +03:00

19 lines
297 B
Go

package http
import "go.unistack.org/micro/v3/router"
// Options struct
type Options struct {
Router router.Router
}
// Option func
type Option func(*Options)
// WithRouter sets the router.Router option
func WithRouter(r router.Router) Option {
return func(o *Options) {
o.Router = r
}
}