l5db

package module
v0.0.0-...-b3c6427 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = serrors.New("not found")

Functions

This section is empty.

Types

type DB

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

func Open

func Open(dir string) (*DB, error)

func (*DB) Close

func (d *DB) Close() error

func (*DB) CreateMap

func (d *DB) CreateMap(pth string) error

func (*DB) Exists

func (d *DB) Exists(path string) (bool, error)

func (*DB) Get

func (d *DB) Get(path string) ([]byte, error)

func (*DB) NewWriteTransaction

func (d *DB) NewWriteTransaction() (*WriteTransaction, error)

func (*DB) Put

func (d *DB) Put(pth string, data []byte) error

func (*DB) Size

func (d *DB) Size(path string) (uint64, error)

type WriteTransaction

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

func (*WriteTransaction) CreateMap

func (d *WriteTransaction) CreateMap(pth string) error

func (*WriteTransaction) Exists

func (d *WriteTransaction) Exists(path string) (bool, error)

func (*WriteTransaction) Get

func (d *WriteTransaction) Get(path string) ([]byte, error)

func (*WriteTransaction) Put

func (d *WriteTransaction) Put(pth string, data []byte) error

func (*WriteTransaction) Size

func (d *WriteTransaction) Size(path string) (uint64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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