meta

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExist = errors.New("Doesn't exist")
	ErrExisted  = errors.New("Existed")
)

Functions

This section is empty.

Types

type Meta

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

func Open

func Open(metaFile string, readOnly bool) (*Meta, error)

func (*Meta) Add

func (m *Meta) Add(bucket, k, v []byte) error

func (*Meta) Close

func (m *Meta) Close() error

func (*Meta) Del

func (m *Meta) Del(bucket, k []byte) error

func (*Meta) Exist

func (m *Meta) Exist(bucket, k []byte) bool

func (*Meta) Get

func (m *Meta) Get(bucket, k []byte) ([]byte, error)

func (*Meta) ListAll

func (m *Meta) ListAll(bucket []byte) ([]Pair, error)

func (*Meta) ListKeys

func (m *Meta) ListKeys(bucket []byte) ([][]byte, error)

func (*Meta) Update

func (m *Meta) Update(bucket, k, v []byte) error

type Pair

type Pair struct {
	K []byte
	V []byte
}

Jump to

Keyboard shortcuts

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