Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkSwitcher ¶
type NetworkSwitcher struct { NodeNetwork core.NodeNetwork `inject:""` Certificate core.Certificate `inject:""` SwitcherWorkAround core.SwitcherWorkAround `inject:""` // contains filtered or unexported fields }
NetworkSwitcher is a network FSM using for bootstrapping
func NewNetworkSwitcher ¶
func NewNetworkSwitcher() (*NetworkSwitcher, error)
NewNetworkSwitcher creates new NetworkSwitcher
func (*NetworkSwitcher) GetState ¶
func (ns *NetworkSwitcher) GetState() core.NetworkState
GetState method returns current network state
Click to show internal directories.
Click to hide internal directories.