db

package
v0.0.0-...-be38885 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Conn *bolt.DB
	// contains filtered or unexported fields
}

func Init

func Init(bucket, file string) (*DB, error)

func (*DB) Delete

func (db *DB) Delete(key string) error

func (*DB) Exists

func (db *DB) Exists(key string) bool

func (*DB) Get

func (db *DB) Get(key string) []byte

func (*DB) GetAll

func (db *DB) GetAll() map[string][]byte

func (*DB) Put

func (db *DB) Put(key string, value []byte) error

Jump to

Keyboard shortcuts

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