Documentation ¶
Index ¶
- type Announce
- func (a *Announce) Acquire()
- func (a *Announce) Advertise()
- func (a *Announce) Announce(ip net.IP) bool
- func (a *Announce) AnnounceName(name string) bool
- func (a *Announce) Close() error
- func (a *Announce) DeleteBalancer(name string)
- func (a *Announce) Leader() bool
- func (a *Announce) Relinquish()
- func (a *Announce) Run()
- func (a *Announce) SetBalancer(name string, ip net.IP)
- func (a *Announce) SetLeader(b bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Announce ¶
Announce is used to "announce" new IPs mapped to the node's MAC address.
func (*Announce) Acquire ¶
func (a *Announce) Acquire()
Acquire sets the leader bit to true and sends out unsolicited NDP neighbor advertisements for all VIPs that should be announced. It does this repeatedly - every 0.5s - for a duration of 5 seconds.
func (*Announce) Advertise ¶
func (a *Announce) Advertise()
Advertise sends unsolicited NDP neighbor advertisements for all IPs.
func (*Announce) AnnounceName ¶
AnnounceName returns true when we have an announcement under name.
func (*Announce) DeleteBalancer ¶
DeleteBalancer deletes an address from the set of addresses we should announce.
func (*Announce) Relinquish ¶
func (a *Announce) Relinquish()
Relinquish set the leader bit to false and stops the goroutine that sends unsolicited NDP neighbor advertisement messages.
func (*Announce) Run ¶
func (a *Announce) Run()
Run starts the announcer, making it listen on the interface for NDP requests. It only responds to these requests when a.leader is set to true, i.e. we are the current cluster wide leader for sending NDP messages.
func (*Announce) SetBalancer ¶
SetBalancer adds ip to the set of announced addresses.