Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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
type NetworkManager ¶
Click to show internal directories.
Click to hide internal directories.