Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State uint32
State is a peer's state.
State's methods are thread safe. Get the State's value using the Get method if you're accessing it concurrently. Otherwise, you may access it directly.
const ( // Uninitialized is the initial state. Uninitialized State = iota // AcceptingInit is the state where the peer is accepting an init message. AcceptingInit // JoiningCluster is the state where the peer is about to join the cluster. JoiningCluster // Initialized is the state where the peer is initializing. Initialized // Failed is the state where the peer has failed. Failed )
Click to show internal directories.
Click to hide internal directories.