Documentation ¶
Overview ¶
Package leveldb provides some useful functions to work with LevelDB. It has common database functions as OpenDB, CloseDB, Insert and Iterate.
Index ¶
- func CloseDB(db *leveldb.DB)
- func GetBfTx(id string) (bf_tx.BF_TX, error)
- func InsertBFTX(key string, value string, db *leveldb.DB) error
- func OpenDB(dbPath string) (db *leveldb.DB, err error)
- func RecordOnDB(id string, json string) error
- func Total() (int, error)
- func Verify(jcontent string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertBFTX ¶ added in v0.5.0
InsertBFTX is a function that receives the key and value strings to insert a tuple in determined DB, the final parameter. As result, it returns a true or false bool.
func OpenDB ¶
OpenDB is a function that receives the path of the DB, creates or opens that DB and return ir with a possible error if that occurred.
func RecordOnDB ¶
RecordOnDB is a function that receives the content of the BF_RX JSON to insert it into the DB and return true or false according to the result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.