tr

package
v0.22.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob added in v0.22.17

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

func (*Blob) Bulk added in v0.22.18

func (c *Blob) Bulk(keys [][]byte, result []uint64) error

func (*Blob) BulkSet added in v0.22.18

func (c *Blob) BulkSet(keys [][][]byte, result [][]uint64) error

type File

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

func New

func New(path string, skip ...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) FindBlob added in v0.22.10

func (r *Read) FindBlob(field string, blob []byte) (uint64, bool)

func (*Read) Key

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

func (*Read) Keys added in v0.22.16

func (r *Read) Keys(field string, id []uint64, f func(value []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 String added in v0.22.17

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

func (*String) Bulk added in v0.22.18

func (c *String) Bulk(keys []string, result []uint64) error

func (*String) BulkSet added in v0.22.18

func (c *String) BulkSet(keys [][]string, result [][]uint64) error

type Write

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

func (*Write) Blobs added in v0.22.17

func (w *Write) Blobs(field string) (*Blob, error)

func (*Write) Commit

func (w *Write) Commit() error

func (*Write) Release

func (w *Write) Release() error

func (*Write) String added in v0.22.17

func (w *Write) String(field string) (*String, error)

Jump to

Keyboard shortcuts

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