store

package
v0.0.0-...-68457a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Timestamp time.Time
	Operation string
	Key       string
	Value     string
}

type KeyValueStore

type KeyValueStore struct {
	Kv map[string]string
	// contains filtered or unexported fields
}

func NewKeyValueStore

func NewKeyValueStore(wal wal.WAL) KeyValueStore

func (*KeyValueStore) Get

func (k *KeyValueStore) Get(key string) (string, error)

func (*KeyValueStore) Init

func (k *KeyValueStore) Init()

func (*KeyValueStore) Insert

func (k *KeyValueStore) Insert(entry Entry) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL