Documentation ¶
Index ¶
- Variables
- type AtomicKV
- func (k *AtomicKV) Apply(ctx context.Context, changes []byte) error
- func (k *AtomicKV) BeginApply(ctx context.Context) error
- func (k *AtomicKV) BeginCommit(ctx context.Context) error
- func (k *AtomicKV) Cancel(ctx context.Context) error
- func (k *AtomicKV) Delete(key []byte) error
- func (k *AtomicKV) EndApply(ctx context.Context) error
- func (k *AtomicKV) EndCommit(ctx context.Context, appender func([]byte) error) (err error)
- func (k *AtomicKV) Get(key []byte) ([]byte, error)
- func (k *AtomicKV) ID(ctx context.Context) ([]byte, error)
- func (k *AtomicKV) NewPrefix(prefix []byte) *AtomicKV
- func (k *AtomicKV) Set(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AtomicKV ¶
type AtomicKV struct {
// contains filtered or unexported fields
}
AtomicKV is a threadsafe, linearizable key/value store.
func NewAtomicKV ¶
NewAtomicKV creates a new atomic key value store. It is compatible with Kwil's 2pc protocol.
Click to show internal directories.
Click to hide internal directories.