tr

package
v0.22.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func New

func New(path string) *File

func (*File) Close

func (f *File) Close() (err error)

func (*File) Open

func (f *File) Open() error

func (*File) Read

func (f *File) Read() (*Read, error)

func (*File) Write

func (f *File) Write() (*Write, error)

type Read

type Read struct {
	// contains filtered or unexported fields
}

func (*Read) Blob

func (r *Read) Blob(field string, id uint64) []byte

Blob returns data stored for blob id.

func (*Read) Find

func (r *Read) Find(field string, key []byte) (uint64, bool)

func (*Read) Key

func (r *Read) Key(field string, id uint64) []byte

func (*Read) Release

func (r *Read) Release() error

func (*Read) Search

func (r *Read) Search(field string, a vellum.Automaton, start, end []byte, match func(key []byte, value uint64) error) error

func (*Read) SearchRe

func (r *Read) SearchRe(field string, like string, start, end []byte, match func(key []byte, value uint64) error) error

type Write

type Write struct {
	// contains filtered or unexported fields
}

func (*Write) Blob

func (w *Write) Blob(field string, data []byte) uint64

func (*Write) Commit

func (w *Write) Commit() error

func (*Write) Release

func (w *Write) Release() error

func (*Write) Tr

func (w *Write) Tr(field string, key []byte) uint64

Jump to

Keyboard shortcuts

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