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 *database.DatabaseConfig, protocol primitive.Protocol, opts ...NodeOption) *Node
NewNode creates a new node running the given protocol
func (*Node) RegisterPrimitive ¶
func (n *Node) RegisterPrimitive(t primitiveapi.PrimitiveType, primitive primitive.Primitive)
RegisterPrimitive registers a primitive type
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.