2019-05-31 01:52:10 +03:00
|
|
|
package http
|
|
|
|
|
2020-07-27 15:22:00 +03:00
|
|
|
import "github.com/micro/go-micro/v3/router"
|
2019-05-31 01:52:10 +03:00
|
|
|
|
|
|
|
type Options struct {
|
2020-07-01 19:06:59 +03:00
|
|
|
Router router.Router
|
2019-05-31 01:52:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type Option func(*Options)
|
|
|
|
|
2020-07-01 19:06:59 +03:00
|
|
|
func WithRouter(r router.Router) Option {
|
2019-05-31 01:52:10 +03:00
|
|
|
return func(o *Options) {
|
2020-07-01 19:06:59 +03:00
|
|
|
o.Router = r
|
2019-05-31 01:52:10 +03:00
|
|
|
}
|
|
|
|
}
|