pkg

package
v0.0.0-...-0940a0d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Db   *bolt.DB
	Mmap map[string]string
)

Functions

func AddKeyValue

func AddKeyValue(key, value string) error

func AddKeyValueBatch

func AddKeyValueBatch(key, value string, wg *sync.WaitGroup) error

func AddKeyValueByBucketName

func AddKeyValueByBucketName(table, key, value string) error

func AddKeyValueByBucketNameAuto

func AddKeyValueByBucketNameAuto(table, key, value string) error

func AddTables

func AddTables(tablename string) error

func CreateBucket

func CreateBucket(tablename string) error

func Delete

func Delete() error

func DeleteBucket

func DeleteBucket(tablename string) error

func DeleteKeyValueByBucket

func DeleteKeyValueByBucket(table, key string) error

func DeleteTables

func DeleteTables(tablename string) error

func GetAllByTables

func GetAllByTables(name string) (map[string]string, error)

func GetAllFile

func GetAllFile(pathname string, gn, ts int) error

func GetAllTables

func GetAllTables() (map[string]string, error)

func GetValueByBucketName

func GetValueByBucketName(table, key string) ([]byte, error)

func Home

func Home() (string, error)

Home returns the home directory for the executing user.

This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.

func Refresh

func Refresh(pathname string, wg *sync.WaitGroup, gn, ts int) error

func SearchAll

func SearchAll(key string, isKey bool) error

func SearchPrefix

func SearchPrefix(key string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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