leveldbstorage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(bucketList []string, path string, dbFolder string, readOnly bool) (*Store, error)

func (*Store) Backup

func (s *Store) Backup(path, filename string) error

func (*Store) CloseStore

func (s *Store) CloseStore() error

func (*Store) Delete

func (s *Store) Delete(bucketName []byte, k []byte) error

func (*Store) DeleteBucket

func (s *Store) DeleteBucket(bucketName []byte) error

func (*Store) Get

func (s *Store) Get(bucketName []byte, k []byte) ([]byte, error)

func (*Store) HasBucket

func (s *Store) HasBucket(bucketName []byte) bool

func (*Store) KeyExist

func (s *Store) KeyExist(bucketName []byte, k []byte) (bool, error)

func (*Store) List

func (s *Store) List(bucketName []byte, k []byte, perpage int) (list []string, err error)

order by asc

func (*Store) ListBucket

func (s *Store) ListBucket() (buckets []string, err error)

func (*Store) MGet

func (s *Store) MGet(bucketName []byte, keys ...[]byte) (list map[string]interface{}, err error)

func (*Store) MSet

func (s *Store) MSet(bucketName []byte, k []byte, v []byte) ([]byte, error)

TODO

func (*Store) PrevList

func (s *Store) PrevList(bucketName []byte, k []byte, perpage int) (list []string, err error)

order by desc

func (*Store) Restore

func (s *Store) Restore(path, filename string) error

func (*Store) Set

func (s *Store) Set(bucketName []byte, k []byte, v []byte) ([]byte, error)

func (*Store) SyncStore

func (s *Store) SyncStore()

Jump to

Keyboard shortcuts

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