micro/util/http/options.go
Vasiliy Tolstov ebd8ddf05b move to v4
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-04-11 22:21:25 +03:00

19 lines
297 B
Go

package http
import "go.unistack.org/micro/v4/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
}
}