Documentation ¶
Index ¶
- type RavelNode
- func (n *RavelNode) Delete(key []byte) error
- func (n *RavelNode) Get(key []byte) ([]byte, error)
- func (n *RavelNode) GetAndDelete(key []byte) ([]byte, error)
- func (n *RavelNode) Join(nodeID, raftAddr string) error
- func (n *RavelNode) Leave(nodeID string) error
- func (n *RavelNode) Open(enableSingle bool, localID string, badgerPath string, BindAddr string) (*raft.Raft, *fsm.RavelFSM, error)
- func (n *RavelNode) Set(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RavelNode ¶
RavelNode represents a node inside the cluster.
func (*RavelNode) GetAndDelete ¶
GetAndDelete returns the value for the given key
func (*RavelNode) Join ¶
Join will join the node available on raftAddr with ID nodeID to this node if its a leader
Click to show internal directories.
Click to hide internal directories.