1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-12 08:23:58 +02:00
go-micro/util/http/options.go
2019-05-30 23:52:10 +01:00

18 lines
242 B
Go

package http
import (
"github.com/micro/go-micro/registry"
)
type Options struct {
Registry registry.Registry
}
type Option func(*Options)
func WithRegistry(r registry.Registry) Option {
return func(o *Options) {
o.Registry = r
}
}