Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigHook ¶
func ConfigHook(raw interface{}) (discovery.ServiceBackend, error)
ConfigHook is the hook to register with the Etcd backend
Types ¶
type ByEtcdServiceID ¶
type ByEtcdServiceID []ServiceNode
ByEtcdServiceID implements the Sort interface because Go can't sort without it.
func (ByEtcdServiceID) Len ¶
func (se ByEtcdServiceID) Len() int
func (ByEtcdServiceID) Less ¶
func (se ByEtcdServiceID) Less(i, j int) bool
func (ByEtcdServiceID) Swap ¶
func (se ByEtcdServiceID) Swap(i, j int)
type Etcd ¶
Etcd is a service discovery backend for CoreOS etcd
func NewEtcdConfig ¶
NewEtcdConfig creates a new service discovery backend for etcd
func (*Etcd) CheckForUpstreamChanges ¶
CheckForUpstreamChanges checks another etcd node for changes
func (*Etcd) Deregister ¶
func (c *Etcd) Deregister(service *discovery.ServiceDefinition)
Deregister removes this instance from the registry
func (*Etcd) MarkForMaintenance ¶
func (c *Etcd) MarkForMaintenance(service *discovery.ServiceDefinition)
MarkForMaintenance removes this instance from the registry
func (*Etcd) SendHeartbeat ¶
func (c *Etcd) SendHeartbeat(service *discovery.ServiceDefinition)
SendHeartbeat refreshes the TTL of this associated etcd node
Click to show internal directories.
Click to hide internal directories.