Documentation
¶
Index ¶
- Variables
- type Event
- type EventType
- type KeyValueStore
- func (store *KeyValueStore) Delete(key string) error
- func (store *KeyValueStore) Get(key string) (string, error)
- func (store *KeyValueStore) Put(key string, value string) error
- func (store *KeyValueStore) Restore() error
- func (store *KeyValueStore) WithTransactionLogger(tl TransactionLogger) *KeyValueStore
- type TransactionLogger
- type ZeroTransactionLogger
- func (z ZeroTransactionLogger) Close() error
- func (z ZeroTransactionLogger) Err() <-chan error
- func (z ZeroTransactionLogger) LastSequence() uint64
- func (z ZeroTransactionLogger) ReadEvents() (<-chan Event, <-chan error)
- func (z ZeroTransactionLogger) Run()
- func (z ZeroTransactionLogger) Wait()
- func (z ZeroTransactionLogger) WriteDelete(key string)
- func (z ZeroTransactionLogger) WritePut(key, value string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNoSuchKey = errors.New("no such key")
Functions ¶
This section is empty.
Types ¶
type KeyValueStore ¶
func NewKeyValueStore ¶
func NewKeyValueStore() *KeyValueStore
func (*KeyValueStore) Delete ¶
func (store *KeyValueStore) Delete(key string) error
func (*KeyValueStore) Restore ¶
func (store *KeyValueStore) Restore() error
func (*KeyValueStore) WithTransactionLogger ¶
func (store *KeyValueStore) WithTransactionLogger(tl TransactionLogger) *KeyValueStore
type TransactionLogger ¶
type ZeroTransactionLogger ¶
type ZeroTransactionLogger struct{}
func (ZeroTransactionLogger) Close ¶
func (z ZeroTransactionLogger) Close() error
func (ZeroTransactionLogger) Err ¶
func (z ZeroTransactionLogger) Err() <-chan error
func (ZeroTransactionLogger) LastSequence ¶
func (z ZeroTransactionLogger) LastSequence() uint64
func (ZeroTransactionLogger) ReadEvents ¶
func (z ZeroTransactionLogger) ReadEvents() (<-chan Event, <-chan error)
func (ZeroTransactionLogger) Run ¶
func (z ZeroTransactionLogger) Run()
func (ZeroTransactionLogger) Wait ¶
func (z ZeroTransactionLogger) Wait()
func (ZeroTransactionLogger) WriteDelete ¶
func (z ZeroTransactionLogger) WriteDelete(key string)
func (ZeroTransactionLogger) WritePut ¶
func (z ZeroTransactionLogger) WritePut(key, value string)
Click to show internal directories.
Click to hide internal directories.