mvcc

package
v0.0.0-...-d427792 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t prefix.Tree) *mvcc

Types

type Iterator

type Iterator interface {
	Close() error
	Next() error
	Valid() bool
	Key() []byte
	Value() uint64
	Timestamp() uint64
}

type MVCC

type MVCC interface {
	Close() error

	Exist([]byte, uint64) bool
	Del([]byte, uint64, suffix.Writer) error
	Get([]byte, uint64) (uint64, uint64, error)
	Set([]byte, uint64, uint64, suffix.Writer) error

	NewForwardIterator([]byte, uint64) (Iterator, error)
	NewBackwardIterator([]byte, uint64) (Iterator, error)
}

Jump to

Keyboard shortcuts

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