Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { ID string // contains filtered or unexported fields }
Node is an Atomix node
func NewNode ¶
func NewNode(nodeID string, config *controller.PartitionConfig, protocol node.Protocol, registry *node.Registry, opts ...NodeOption) *Node
NewNode creates a new node running the given protocol
type NodeOption ¶
type NodeOption interface {
// contains filtered or unexported methods
}
NodeOption is an option for constructing a Node
func WithLocal ¶
func WithLocal(lis net.Listener) NodeOption
WithLocal sets the node to local mode for testing
Click to show internal directories.
Click to hide internal directories.