micro/util/http/options.go

18 lines
245 B
Go
Raw Normal View History

2019-05-31 01:52:10 +03:00
package http
import (
"github.com/micro/go-micro/v2/registry"
2019-05-31 01:52:10 +03:00
)
type Options struct {
Registry registry.Registry
}
type Option func(*Options)
func WithRegistry(r registry.Registry) Option {
return func(o *Options) {
o.Registry = r
}
}