database

package
v0.0.0-...-127b1e4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: OSL-3.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 LevelDbDatabase

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

func NewLevelDb

func NewLevelDb(path string) (*LevelDbDatabase, error)

func (*LevelDbDatabase) Get

func (database *LevelDbDatabase) Get(key []byte) ([]byte, error)

func (*LevelDbDatabase) GetAll

func (database *LevelDbDatabase) GetAll() ([][]byte, error)

func (*LevelDbDatabase) Init

func (database *LevelDbDatabase) Init(path string) error

func (*LevelDbDatabase) Save

func (database *LevelDbDatabase) Save(key []byte, value []byte) error

type Repository

type Repository interface {
	Init(path string) error
	Save(key []byte, value []byte) error
	Get(key []byte) ([]byte, error)
	GetAll() ([][]byte, error)
}

Jump to

Keyboard shortcuts

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