Documentation ¶
Index ¶
- type ChecksFunc
- type ErrorFunc
- type EventFunc
- type KeyFunc
- type KeyPrefixFunc
- type NodesFunc
- type Sentry
- func (s *Sentry) DeleteChecksCh(ch chan []*api.HealthCheck)
- func (s *Sentry) DeleteEventCh(ch chan []*api.UserEvent)
- func (s *Sentry) DeleteKeyCh(ch chan *api.KVPair)
- func (s *Sentry) DeleteKeyPrefixCh(ch chan api.KVPairs)
- func (s *Sentry) DeleteNodesCh(ch chan []*api.Node)
- func (s *Sentry) DeleteServiceCh(ch chan []*api.ServiceEntry)
- func (s *Sentry) DeleteServicesCh(ch chan map[string][]string)
- func (s *Sentry) GetChecksCh() chan []*api.HealthCheck
- func (s *Sentry) GetEventCh() chan []*api.UserEvent
- func (s *Sentry) GetKeyCh() chan *api.KVPair
- func (s *Sentry) GetKeyPrefixCh() chan api.KVPairs
- func (s *Sentry) GetNodesCh() chan []*api.Node
- func (s *Sentry) GetServiceCh() chan []*api.ServiceEntry
- func (s *Sentry) GetServicesCh() chan map[string][]string
- func (s *Sentry) SetAddress(a string)
- func (s *Sentry) SetChecksFunc(fn ChecksFunc)
- func (s *Sentry) SetErrorFunc(fn ErrorFunc)
- func (s *Sentry) SetEventFunc(fn EventFunc)
- func (s *Sentry) SetKeyFunc(fn KeyFunc)
- func (s *Sentry) SetKeyPrefixFunc(fn KeyPrefixFunc)
- func (s *Sentry) SetNodesFunc(fn NodesFunc)
- func (s *Sentry) SetRoute(r string)
- func (s *Sentry) SetServiceFunc(fn ServiceFunc)
- func (s *Sentry) SetServicesFunc(fn ServicesFunc)
- func (s *Sentry) Start() error
- type ServiceFunc
- type ServicesFunc
- type WatchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sentry ¶
type Sentry struct {
// contains filtered or unexported fields
}
Sentry Sentry
func (*Sentry) DeleteChecksCh ¶
func (s *Sentry) DeleteChecksCh(ch chan []*api.HealthCheck)
DeleteChecksCh Deleting nodes channel
func (*Sentry) DeleteEventCh ¶
DeleteEventCh Deleting event channel
func (*Sentry) DeleteKeyCh ¶
DeleteKeyCh Deleting key channel
func (*Sentry) DeleteKeyPrefixCh ¶
DeleteKeyPrefixCh Deleting key prefix channel
func (*Sentry) DeleteNodesCh ¶
DeleteNodesCh Deleting nodes channel
func (*Sentry) DeleteServiceCh ¶
func (s *Sentry) DeleteServiceCh(ch chan []*api.ServiceEntry)
DeleteServiceCh Deleting service channel
func (*Sentry) DeleteServicesCh ¶
DeleteServicesCh Deleting services channel
func (*Sentry) GetChecksCh ¶
func (s *Sentry) GetChecksCh() chan []*api.HealthCheck
GetChecksCh Returning nodes channel
func (*Sentry) GetEventCh ¶
GetEventCh Returning event channel
func (*Sentry) GetKeyPrefixCh ¶
GetKeyPrefixCh Returning key prefix channel
func (*Sentry) GetNodesCh ¶
GetNodesCh Returning nodes channel
func (*Sentry) GetServiceCh ¶
func (s *Sentry) GetServiceCh() chan []*api.ServiceEntry
GetServiceCh Returning service channel
func (*Sentry) GetServicesCh ¶
GetServicesCh Returning services channel
func (*Sentry) SetAddress ¶
SetAddress Setting web server address
func (*Sentry) SetChecksFunc ¶
func (s *Sentry) SetChecksFunc(fn ChecksFunc)
SetChecksFunc Setting checks function
func (*Sentry) SetErrorFunc ¶
SetErrorFunc Setting error function
func (*Sentry) SetEventFunc ¶
SetEventFunc Setting event function
func (*Sentry) SetKeyPrefixFunc ¶
func (s *Sentry) SetKeyPrefixFunc(fn KeyPrefixFunc)
SetKeyPrefixFunc Setting key prefix function
func (*Sentry) SetNodesFunc ¶
SetNodesFunc Setting nodes function
func (*Sentry) SetServiceFunc ¶
func (s *Sentry) SetServiceFunc(fn ServiceFunc)
SetServiceFunc Setting service function
func (*Sentry) SetServicesFunc ¶
func (s *Sentry) SetServicesFunc(fn ServicesFunc)
SetServicesFunc Setting services function