1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-23 17:53:05 +02:00
go-micro/util/http/options.go

18 lines
232 B
Go
Raw Normal View History

2019-05-30 23:52:10 +01:00
package http
import (
2021-10-12 12:55:53 +01:00
"go-micro.dev/v4/registry"
2019-05-30 23:52:10 +01:00
)
type Options struct {
Registry registry.Registry
}
type Option func(*Options)
func WithRegistry(r registry.Registry) Option {
return func(o *Options) {
o.Registry = r
}
}