Vasiliy Tolstov
06136312bb
* regen files with never protoc * rewrite import path Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
16 lines
228 B
Go
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
|
|
}
|
|
}
|