Documentation ¶ Index ¶ type KVStore func NewKVStore(snapshotter *snap.Snapshotter, proposeC chan<- string, commitC <-chan *string, ...) *KVStore func (s *KVStore) GetSnapshot() ([]byte, error) func (s *KVStore) Lookup(key string) (string, bool) func (s *KVStore) Propose(k string, v string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type KVStore ¶ type KVStore struct { // contains filtered or unexported fields } KVStore a key-value store backed by raft func NewKVStore ¶ func NewKVStore(snapshotter *snap.Snapshotter, proposeC chan<- string, commitC <-chan *string, errorC <-chan error) *KVStore func (*KVStore) GetSnapshot ¶ func (s *KVStore) GetSnapshot() ([]byte, error) func (*KVStore) Lookup ¶ func (s *KVStore) Lookup(key string) (string, bool) func (*KVStore) Propose ¶ func (s *KVStore) Propose(k string, v string) Source Files ¶ View all Source files kvstore.go Click to show internal directories. Click to hide internal directories.