Documentation ¶
Index ¶
- Variables
- type Node
- func (n *Node) Delete(key string) error
- func (n *Node) DeleteRange(min string, max string) (uint64, error)
- func (n *Node) Get(key string) (string, error)
- func (n *Node) GetRange(min string, max string) (db.KeyValueIterator, error)
- func (n *Node) Join(nodeID, addr string) error
- func (n *Node) Open(localID string, enableSingle bool, peers []Peer) error
- func (n *Node) Set(key, value string) error
- type Peer
- type Raftukki
- func (t *Raftukki) DeleteRange(min uint64, max uint64) error
- func (t *Raftukki) FirstIndex() (uint64, error)
- func (t *Raftukki) Get(key []byte) ([]byte, error)
- func (t *Raftukki) GetLog(index uint64, log *raft.Log) error
- func (t *Raftukki) GetUint64(key []byte) (uint64, error)
- func (t *Raftukki) LastIndex() (uint64, error)
- func (t *Raftukki) Set(key []byte, val []byte) error
- func (t *Raftukki) SetUint64(key []byte, val uint64) error
- func (t *Raftukki) StoreLog(log *raft.Log) error
- func (t *Raftukki) StoreLogs(logs []*raft.Log) error
- type SstableIterator
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Node ¶
func (*Node) DeleteRange ¶
DeleteRange implements kv.DB.
func (*Node) Join ¶
Join joins a node, identified by nodeID and located at addr, to this store. The node must be ready to respond to Raft communications at that address.
type Raftukki ¶
type Raftukki struct {
// contains filtered or unexported fields
}
func NewRaftukki ¶
func (*Raftukki) DeleteRange ¶
DeleteRange implements raft.LogStore.
func (*Raftukki) FirstIndex ¶
FirstIndex implements raft.LogStore.
type SstableIterator ¶
type SstableIterator struct {
// contains filtered or unexported fields
}
func (*SstableIterator) Next ¶
func (i *SstableIterator) Next() (keyvalue.IteratorEntry, error)
Click to show internal directories.
Click to hide internal directories.