Documentation ¶
Index ¶
- func ARPSendGratuitous(arp *ARPGratuitous) error
- func Serve(cfg Config)
- func SplitIP(addr string) (string, error)
- type ARPGratuitous
- type Config
- type FSM
- type Logger
- type Manager
- type NTPConfig
- type NTPManager
- type Network
- type NetworkConfig
- type NetworkManager
- type Ntp
- type Peer
- type Peers
- type Raft
- type RaftPeers
- type Snapshot
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 ¶
ARPGratuitous encapsulates a request to send a gratuitous ARP message.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(id, bind string, peers RaftPeers, logger Logger, networkManager NetworkManager, ntpManager NTPManager) *Manager
type NTPConfig ¶
func (*NTPConfig) RenderFollower ¶
func (*NTPConfig) RenderLeader ¶
func (*NTPConfig) RestartService ¶
type NTPManager ¶
type NetworkConfig ¶
type NetworkConfig struct {
// contains filtered or unexported fields
}
NetworkConfig for link
func NewNetworkConfig ¶
func NewNetworkConfig(address, link string) (*NetworkConfig, error)
NewNetworkConfig return NetworkConfig
func (*NetworkConfig) AddIP ¶
func (nc *NetworkConfig) AddIP()
func (*NetworkConfig) DelIP ¶
func (nc *NetworkConfig) DelIP()
func (*NetworkConfig) IP ¶
func (nc *NetworkConfig) IP() string
func (*NetworkConfig) IsSet ¶
func (nc *NetworkConfig) IsSet() (bool, error)
func (*NetworkConfig) IsUsed ¶
func (nc *NetworkConfig) IsUsed() bool
func (*NetworkConfig) Link ¶
func (nc *NetworkConfig) Link() string
func (*NetworkConfig) SendARP ¶
func (nc *NetworkConfig) SendARP() error
type NetworkManager ¶
Click to show internal directories.
Click to hide internal directories.