index

package
v0.0.0-...-6120cfb Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAnotherTxnHeldWLock  = errors.New("another txn held write-lock")
	ErrFailedToAcquireWLock = errors.New("failed to acquire write-lock")
	ErrWriteConflicts       = errors.New("write conflicts")
	ErrKeyNotExists         = errors.New("key not exists")
)

Functions

This section is empty.

Types

type Index

type Index[T any] interface {
	NewTransactionAt(readTs uint64, update bool) Txn[T]
}

func New

func New[T any](opts Options) Index[T]

type Options

type Options struct {
}

type Txn

type Txn[T any] interface {
	Get(key []byte) (ret T, err error)
	Set(key []byte, value T) error
	CommitAt(commitTs uint64, callback func(error)) error
	ReadTS() uint64
}

type Value

type Value[T any] struct {
	// contains filtered or unexported fields
}

Value value and Timestamp Ordering header (MVTO)

type VersionChainHead

type VersionChainHead[T any] struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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