Documentation ¶
Index ¶
- func Dial(ctx context.Context, serviceName string, etcdUrls []string) (*grpc.ClientConn, error)
- type GetMachineIP
- type Option
- func AfterStart(fn func() error) Option
- func BeforeStart(fn func() error) Option
- func Context(ctx context.Context) Option
- func EtcdUrls(urls []string) Option
- func GetMachineIPFn(fn GetMachineIP) Option
- func Metadata(md map[string]string) Option
- func Name(name string) Option
- func RegisterServiceFn(fn func(*server.Server)) Option
- func Registrar(r sd.Registrar) Option
- func Server(srv *server.Server) Option
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetMachineIP ¶
type GetMachineIP func() string
type Option ¶
type Option func(o *options)
func AfterStart ¶
func BeforeStart ¶
func GetMachineIPFn ¶
func GetMachineIPFn(fn GetMachineIP) Option
func RegisterServiceFn ¶
Click to show internal directories.
Click to hide internal directories.