Documentation ¶
Index ¶
- type Client
- type Discovery
- func (d *Discovery) DeregisterService(name string) error
- func (d *Discovery) GetLocalServices() ([]*Service, error)
- func (d *Discovery) GetRandomServiceAddress(name string) (*string, error)
- func (d *Discovery) GetService(name string) ([]*Node, error)
- func (d *Discovery) RegisterService(name string, port int) error
- type Node
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery is the main interface to all things discovery
func NewDiscovery ¶
NewDiscovery returns a new discovery initialized
func (*Discovery) DeregisterService ¶
DeregisterService is used to deregister a service with discovery service
func (*Discovery) GetLocalServices ¶
GetLocalServices is used to get all the services managed by the local agent
func (*Discovery) GetRandomServiceAddress ¶
func (*Discovery) GetService ¶
GetService is used to get all instances of a service
Click to show internal directories.
Click to hide internal directories.