Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnounceResolver ¶
AnnounceResolver groups Announcer and Resolver interfaces.
type Announcer ¶
Announcer describes something that can announce a service instance to make it available for discovery.
type Instance ¶
type Instance struct { ID string Endpoint string Meta InstanceMeta }
TODO: Add possibility to update announced instance metadata. Instance represents an RPC instance, usually this map to one process.
func NewInstance ¶
func NewInstance(endpoint string, meta InstanceMeta) Instance
NewInstance creates a new Instance.
type InstanceMeta ¶
type InstanceMeta map[string]interface{}
InstanceMeta represents metadata associated with an instance.
Directories ¶
Path | Synopsis |
---|---|
package loadbalancer defines how to balance and distribute requests between multiple service instances.
|
package loadbalancer defines how to balance and distribute requests between multiple service instances. |
package zookeeper contains definition of discovery logic to announce rpc instances in zookeeper and resolve them.
|
package zookeeper contains definition of discovery logic to announce rpc instances in zookeeper and resolve them. |
Click to show internal directories.
Click to hide internal directories.