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

18 lines
232 B
Go
Raw Normal View History

2019-05-31 00:52:10 +02:00
package http
import (
2024-06-04 22:40:43 +02:00
"go-micro.dev/v5/registry"
2019-05-31 00:52:10 +02:00
)
type Options struct {
Registry registry.Registry
}
type Option func(*Options)
func WithRegistry(r registry.Registry) Option {
return func(o *Options) {
o.Registry = r
}
}