Documentation ¶ Index ¶ func InitDB(cfg *config.Config) type DB func GetDB() *DB func (db *DB) Close() func (db *DB) Delete(key []byte) error func (db *DB) Get(key []byte) ([]byte, error) func (db *DB) GetKeys(prefix []byte) ([][]byte, error) func (db *DB) Set(key, value []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func InitDB ¶ func InitDB(cfg *config.Config) Types ¶ type DB ¶ type DB struct { // contains filtered or unexported fields } func GetDB ¶ func GetDB() *DB func (*DB) Close ¶ func (db *DB) Close() func (*DB) Delete ¶ func (db *DB) Delete(key []byte) error func (*DB) Get ¶ func (db *DB) Get(key []byte) ([]byte, error) func (*DB) GetKeys ¶ func (db *DB) GetKeys(prefix []byte) ([][]byte, error) func (*DB) Set ¶ func (db *DB) Set(key, value []byte) error Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.