Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeartBeater ¶
func NewHeartBeater ¶
func NewHeartBeater(name string, servicePort int, leader string) *HeartBeater
func (*HeartBeater) StartHeartBeat ¶
func (h *HeartBeater) StartHeartBeat(killChan chan bool)
Starts heart beating
type NameServiceAgent ¶
type NameServiceAgent struct {
Leaders []string
}
func NewNameServiceAgent ¶
func NewNameServiceAgent(leaders ...string) *NameServiceAgent
func (*NameServiceAgent) Find ¶
func (n *NameServiceAgent) Find(name string) (locations []string)
Click to show internal directories.
Click to hide internal directories.