Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery interface { GetService(ctx context.Context, serviceName string) ([]*ServiceInfo, error) NewWatcher(ctx context.Context, serviceName string) (Watcher, error) }
Discovery discovers instance information from a service discovery system
type Registrar ¶
type Registrar interface { Register(ctx context.Context, service *ServiceInfo) error Deregister(ctx context.Context, service *ServiceInfo) error }
Registrar registers instance information to a service discovery system
type ServiceInfo ¶
type Update ¶
type Update struct { Op Operation Key string ServiceInfo *ServiceInfo }
Click to show internal directories.
Click to hide internal directories.