Documentation ¶
Index ¶
Constants ¶
View Source
const Scheme = "registry"
Variables ¶
This section is empty.
Functions ¶
func NewResolverBuilder ¶
Types ¶
type Registry ¶
type Registry interface { Register(serviceInstance Instance) error Deregister(serviceInstance Instance) error Instances(service string) []Instance Watch(service string) (<-chan RegistryChange, func()) }
Registry provides a way for services to register/deregister in services and resolve service name to an array of available (healthy) endpoints
type RegistryChange ¶
type RegistryChange struct { Instance Instance Type RegistryChangeType }
type RegistryChangeType ¶
type RegistryChangeType int
const ( RCTRegistered RegistryChangeType = iota RCTDeregistered )
Click to show internal directories.
Click to hide internal directories.