mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-30 08:06:40 +02:00
26 lines
387 B
Go
26 lines
387 B
Go
package monitor
|
|
|
|
import (
|
|
"github.com/micro/go-micro/client"
|
|
"github.com/micro/go-micro/registry"
|
|
)
|
|
|
|
type Options struct {
|
|
Client client.Client
|
|
Registry registry.Registry
|
|
}
|
|
|
|
type Option func(*Options)
|
|
|
|
func Client(c client.Client) Option {
|
|
return func(o *Options) {
|
|
o.Client = c
|
|
}
|
|
}
|
|
|
|
func Registry(r registry.Registry) Option {
|
|
return func(o *Options) {
|
|
o.Registry = r
|
|
}
|
|
}
|