database

package
v0.0.0-...-8cfcfd0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 1 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 interface {
	Get(key string) (string, error)
	Set(key, value string) error
	Delete(key string) error
}

func NewLevelDB

func NewLevelDB(path string) (DB, error)

type LevelDB

type LevelDB struct {
	*leveldb.DB
}

func (*LevelDB) Delete

func (ldb *LevelDB) Delete(key string) error

func (*LevelDB) Get

func (ldb *LevelDB) Get(key string) (string, error)

func (*LevelDB) Set

func (ldb *LevelDB) Set(key, value string) error

Jump to

Keyboard shortcuts

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