db

package
v0.0.0-...-03d8cdb Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(path string) (db *Database, close func() error, err error)

func (*Database) GetKey

func (d *Database) GetKey(key string) ([]byte, error)

API: GetKey returns value from database

func (*Database) SetKey

func (d *Database) SetKey(key string, value []byte) error

API: SetKey puts the key in the database

Jump to

Keyboard shortcuts

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