leveldb

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(name string)

func Create

func Create(name, path string) error

Types

type Level

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

func Get

func Get(name string) *Level

func (*Level) Del

func (l *Level) Del(key []byte) error

func (*Level) DelList

func (l *Level) DelList(keyList [][]byte) error

func (*Level) Find

func (l *Level) Find(key [][]byte) (list []Model, err error)

func (*Level) FindKey

func (l *Level) FindKey(key []byte) (list []Model, err error)

func (*Level) FindRange

func (l *Level) FindRange(start, end []byte) (list []Model, err error)

func (*Level) FindSeek

func (l *Level) FindSeek(seek []byte) (list []Model, err error)

func (*Level) Get

func (l *Level) Get(key []byte) (obj Model, err error)

func (*Level) GetAll

func (l *Level) GetAll() (list []Model, err error)

func (*Level) Insert

func (l *Level) Insert(obj Model) error

func (*Level) InsertList

func (l *Level) InsertList(list []Model) error

type Model

type Model struct {
	Key []byte
	Val []byte
}

Jump to

Keyboard shortcuts

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