Documentation ¶
Index ¶
- type Announce
- func (a *Announce) Acquire()
- 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) Packets() []*arp.Packet
- func (a *Announce) Relinquish()
- 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 sends out a unsolicited ARP replies for all VIPs that should be announced.
func (*Announce) AnnounceName ¶ added in v0.3.0
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) Packets ¶ added in v0.3.0
Packets returns a slice of ARP packets that can be send out as unsolicited ARPs.
func (*Announce) Relinquish ¶ added in v0.3.0
func (a *Announce) Relinquish()
Relinquish set the leader bit to false and stops the go-routine that sends unsolicited APR replies.
func (*Announce) SetBalancer ¶
SetBalancer adds ip to the set of announced addresses.
Click to show internal directories.
Click to hide internal directories.