pkg

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ARPSendGratuitous

func ARPSendGratuitous(arp *ARPGratuitous) error

ARPSendGratuitous sends a gratuitous ARP message via the specified interface.

Types

type ARPGratuitous

type ARPGratuitous struct {
	IfaceName string
	IP        net.IP
}

ARPGratuitous encapsulates a request to send a gratuitous ARP message.

type FSM

type FSM struct {
}

func (FSM) Apply

func (fsm FSM) Apply(log *raft.Log) interface{}

func (FSM) Restore

func (fsm FSM) Restore(snap io.ReadCloser) error

func (FSM) Snapshot

func (fsm FSM) Snapshot() (raft.FSMSnapshot, error)

type Logger

type Logger struct {
}

func (Logger) Write

func (logger Logger) Write(data []byte) (count int, error error)

type NetlinkNetworkConfigurator

type NetlinkNetworkConfigurator struct {
	// contains filtered or unexported fields
}

func NewNetlinkNetworkConfigurator

func NewNetlinkNetworkConfigurator(_address, _interface string) (result NetlinkNetworkConfigurator, error error)

func (NetlinkNetworkConfigurator) AddIP

func (configurator NetlinkNetworkConfigurator) AddIP() error

func (NetlinkNetworkConfigurator) DeleteIP

func (configurator NetlinkNetworkConfigurator) DeleteIP() error

func (NetlinkNetworkConfigurator) IP

func (configurator NetlinkNetworkConfigurator) IP() string

func (NetlinkNetworkConfigurator) Interface

func (configurator NetlinkNetworkConfigurator) Interface() string

func (NetlinkNetworkConfigurator) IsSet

func (configurator NetlinkNetworkConfigurator) IsSet() (result bool, error error)

func (NetlinkNetworkConfigurator) IsUsed

func (configurator NetlinkNetworkConfigurator) IsUsed() bool

func (NetlinkNetworkConfigurator) SendARP

func (configurator NetlinkNetworkConfigurator) SendARP() error

type NetworkConfigurator

type NetworkConfigurator interface {
	AddIP() error
	DeleteIP() error
	IsSet() (bool, error)
	IsUsed() bool
	IP() string
	Interface() string
	SendARP() error
}

type Peer

type Peer struct {
	ID   string
	Bind string
}

type Peers

type Peers map[string]string

type Snapshot

type Snapshot struct {
}

func (Snapshot) Persist

func (snapshot Snapshot) Persist(sink raft.SnapshotSink) error

func (Snapshot) Release

func (snapshot Snapshot) Release()

type VIPManager

type VIPManager struct {
	// contains filtered or unexported fields
}

func NewVIPManager

func NewVIPManager(id, bind string, peers Peers, logger Logger, networkConfigurator NetworkConfigurator) *VIPManager

func (*VIPManager) Start

func (manager *VIPManager) Start() error

func (*VIPManager) Stop

func (manager *VIPManager) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL