mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-18 08:26:38 +02:00
f23638c036
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
18 lines
245 B
Go
18 lines
245 B
Go
package http
|
|
|
|
import (
|
|
"github.com/micro/go-micro/v2/registry"
|
|
)
|
|
|
|
type Options struct {
|
|
Registry registry.Registry
|
|
}
|
|
|
|
type Option func(*Options)
|
|
|
|
func WithRegistry(r registry.Registry) Option {
|
|
return func(o *Options) {
|
|
o.Registry = r
|
|
}
|
|
}
|