Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶ added in v1.2.0
type Storage interface { CloseStore() SyncStore() Set(bucketName []byte, k []byte, data []byte) ([]byte, error) Get(bucketName []byte, k []byte) ([]byte, error) MGet(bucketName []byte, keys ...[]byte) (interface{}, error) List(bucketName []byte, cursor []byte, perpage int) ([]string, error) PrevList(bucketName []byte, cursor []byte, perpage int) ([]string, error) Delete(bucketName []byte, k []byte) error KeyExist(bucketName []byte, k []byte) (bool, error) ValueExist(bucketName []byte, v []byte) (bool, error) HasBucket(bucketName []byte) bool StatsBucket(bucketName []byte) int ListBucket() ([]string, error) DeleteBucket(bucketName []byte) error Backup(path, filename string) error Restore(path, filename string) error }
Click to show internal directories.
Click to hide internal directories.