package
0.0.0-20240326062506-f5843275b49a
Repository: https://github.com/kubewharf/kubebrain.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewErrConflict generate a new conflict error for failed compare cause WriteBatch can not be committed.
NewErrUncertainResult wraps an error as uncertain error.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Conflict wraps the error of failed compare which causes WriteBatch can not be committed.
Partition indicates the boarder of an ordered key region `[Start, End)`.

# Interfaces

BatchWrite should support atomic batch pack with several operations.
ExclusiveKvStorage defines the context individual KvStorage for the background job.
FeatureSupport indicates whether storage engine support some non-core feature.
Iter is the iterator on a **snapshot** of kv storage with batch buffer Example: iter := kvStorage.Iter(start, end, snapshotID, false) defer iter.Close() iterCtx := context.WithTimeout(ctx, timeout) for { err := iter.Next(iterCtx) if err != nil { if err == io.EOF { // come to the end } // unexpected error } key, value := iter.Key(), iter.Val() // processing ..
KvStorage defines the storage engine on kv database.
Writer defines some methods to modify kv in storage engine it aims to avoid multirow transaction if possible when write one key only it can be implemented by wrapping the BatchWrite.