Documentation
¶
Index ¶
- type KVS
- type KVSFSM
- type KVSFSMSnapshot
- type KeyValueStore
- func (s *KeyValueStore) Close() error
- func (s *KeyValueStore) Delete(key []byte) error
- func (s *KeyValueStore) Get(key []byte) ([]byte, error)
- func (s *KeyValueStore) Join(nodeId string, addr string) error
- func (s *KeyValueStore) Leave(nodeId string) error
- func (s *KeyValueStore) Open(bootstrap bool, localID string) error
- func (s *KeyValueStore) Set(key []byte, value []byte) error
- func (s *KeyValueStore) Snapshot() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVS ¶
type KVS struct {
// contains filtered or unexported fields
}
func (*KVS) SnapshotItems ¶
func (b *KVS) SnapshotItems() <-chan *kvs.KeyValuePair
type KVSFSMSnapshot ¶
type KVSFSMSnapshot struct {
// contains filtered or unexported fields
}
func (*KVSFSMSnapshot) Persist ¶
func (f *KVSFSMSnapshot) Persist(sink raft.SnapshotSink) error
func (*KVSFSMSnapshot) Release ¶
func (f *KVSFSMSnapshot) Release()
type KeyValueStore ¶
type KeyValueStore struct {
BindAddr string
DataDir string
// contains filtered or unexported fields
}
func NewKeyValueStore ¶
func (*KeyValueStore) Close ¶
func (s *KeyValueStore) Close() error
func (*KeyValueStore) Delete ¶
func (s *KeyValueStore) Delete(key []byte) error
func (*KeyValueStore) Leave ¶
func (s *KeyValueStore) Leave(nodeId string) error
func (*KeyValueStore) Snapshot ¶
func (s *KeyValueStore) Snapshot() error
Click to show internal directories.
Click to hide internal directories.