boltdbstorage

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 7 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, indexList []string, path string, dbName string, readOnly bool) (*Store, error)

func (*Store) Backup

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

func (*Store) CloseStore added in v1.2.0

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)

First() Move to the first key. Last() Move to the last key. Seek() Move to a specific key. Next() Move to the next key. Prev() Move to the previous key.

func (*Store) ListBucket added in v1.2.0

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) PrevList

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

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) StatsBucket added in v1.2.0

func (s *Store) StatsBucket(bucketName []byte) int

func (*Store) SyncStore added in v1.2.0

func (s *Store) SyncStore()

func (*Store) ValueExist

func (s *Store) ValueExist(bucketName []byte, v []byte) (bool, error)

Jump to

Keyboard shortcuts

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