db

package
v0.0.0-...-08951a2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Users, _     = buntdb.Open("users.db")
	Passwords, _ = buntdb.Open("passwords.db")
	Goods, _     = buntdb.Open("goods.db")
	Posts, _     = buntdb.Open("posts.db")
	Comments, _  = buntdb.Open("comments.db")
	Files, _     = buntdb.Open("files.db")
	Logs, _      = buntdb.Open(":memory:")
)

Functions

func Delete

func Delete(db byte, key string) error

func Exist

func Exist(db byte, key string) bool

func Insert

func Insert(db byte, key, val string) (err error)

func ReadAll

func ReadAll(db byte, pattern string) (str string, err error)

func ReadOne

func ReadOne(db byte, key string) (str string, err error)

func Renew

func Renew(db byte, key string) (error, string)

func Start

func Start()

func Stop

func Stop()

Types

This section is empty.

Jump to

Keyboard shortcuts

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