Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
Discoverer listens to a service discovery system and yields a set of identical instance locations. An error indicates a problem with connectivity to the service discovery system, or within the system itself; a subscriber may yield no endpoints without error.
type Dispatcher ¶
Dispatcher can register/unregister observers and pass notifications to them
func (*Dispatcher) Notify ¶
func (d *Dispatcher) Notify(instances []string)
Notify sends instances to all Observers
func (*Dispatcher) Register ¶
func (d *Dispatcher) Register(ch chan<- []string)
Register adds an observer to the list.
func (*Dispatcher) Unregister ¶
func (d *Dispatcher) Unregister(ch chan<- []string)
Unregister removes an observer from the list.
type FixedDiscoverer ¶
type FixedDiscoverer []string
FixedDiscoverer yields a fixed set of instances.
func (FixedDiscoverer) Instances ¶
func (d FixedDiscoverer) Instances() ([]string, error)
Instances implements Discoverer.
Click to show internal directories.
Click to hide internal directories.