Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogData ¶
type LogData struct { Operation string `json:"Operation"` Key []byte `json:"Key"` Value []byte `json:"Value"` }
LogData represents the structure of individual commands on the Logs
type RavelFSM ¶
type RavelFSM struct {
Db *db.RavelDatabase
}
RavelFSM implements the raft.FSM interface. It represents the Finite State Machine in a RavelNode. The individual logs are "applied" on the FSM on receiving the commit RPC from the leader.
func (*RavelFSM) Close ¶
func (f *RavelFSM) Close()
Close will close the connection to the internal db.RavelDatabase instance
func (*RavelFSM) GetAndDelete ¶
Get returns the value for the provided key
type Snapshot ¶
type Snapshot struct {
Db *db.RavelDatabase
}
Snapshot implements the raft.Snapshot interface
Click to show internal directories.
Click to hide internal directories.