Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
type Discoverer interface { Discover(ctx context.Context, svc addr.HostSVC) ([]*net.UDPAddr, error) Discoverable(svc addr.HostSVC) bool }
Discoverer discovers healthy service instances of different types.
type DiscovererMap ¶
type DiscovererMap map[addr.HostSVC]interface { Discover(ctx context.Context, svc addr.HostSVC) ([]*net.UDPAddr, error) }
DiscovererMap implements the Discoverer interface and allows registering different health discoverers per service type.
func (DiscovererMap) Discoverable ¶
func (m DiscovererMap) Discoverable(svc addr.HostSVC) bool
Discoverable indicates whether discovery for the service type is supported.
type StaticDiscoverer ¶
StaticDiscoverer returns a static set of instances.
type Watcher ¶
type Watcher struct { Discoverer Discoverer Topology topology.Topology // contains filtered or unexported fields }
Watcher watches for service changes in the topology.
Directories ¶
Path | Synopsis |
---|---|
Package mock_svchealth is a generated GoMock package.
|
Package mock_svchealth is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.