adminstore

package
v0.0.0-...-cbad70e Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminStore

type AdminStore struct {
	Storage *sniperstorage.Store
}

func NewStore

func NewStore(dbPath, dbName string, bucketList, indexList []string, readOnly bool) (*AdminStore, error)

func (*AdminStore) Backup

func (ms *AdminStore) Backup(path, filename string) error

func (*AdminStore) CloseStore

func (ms *AdminStore) CloseStore()

func (*AdminStore) Delete

func (ms *AdminStore) Delete(bucketName []byte, k []byte) error

func (*AdminStore) DeleteBucket

func (ms *AdminStore) DeleteBucket(bucketName []byte) error

func (*AdminStore) Get

func (ms *AdminStore) Get(bucketName []byte, k []byte) ([]byte, error)

func (*AdminStore) HasBucket

func (ms *AdminStore) HasBucket(bucketName []byte) bool

func (*AdminStore) KeyExist

func (ms *AdminStore) KeyExist(bucketName []byte, k []byte) (bool, error)

func (*AdminStore) List

func (ms *AdminStore) List(bucketName []byte, k []byte, perpage int) ([]string, error)

func (*AdminStore) ListBucket

func (ms *AdminStore) ListBucket() ([]string, error)

func (*AdminStore) MGet

func (ms *AdminStore) MGet(bucketName []byte, keys ...[]byte) (interface{}, error)

func (*AdminStore) PrevList

func (ms *AdminStore) PrevList(bucketName []byte, k []byte, perpage int) ([]string, error)

func (*AdminStore) Restore

func (ms *AdminStore) Restore(path, filename string) error

func (*AdminStore) Set

func (ms *AdminStore) Set(bucketName []byte, k []byte, data []byte) ([]byte, error)

func (*AdminStore) StatsBucket

func (ms *AdminStore) StatsBucket(bucketName []byte) int

func (*AdminStore) SyncStore

func (ms *AdminStore) SyncStore()

func (*AdminStore) ValueExist

func (ms *AdminStore) 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