keyvaluedb

package
v0.0.0-...-a57500f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueDB

type KeyValueDB interface {
	Read(key string, v interface{}) error
	Write(key string, v interface{}) error
}

type KeyValueDBManager

type KeyValueDBManager interface {
	KeyValueDB
	Close()
}

func NewKeyValueDB

func NewKeyValueDB(filename string) (KeyValueDBManager, error)

type KeyValueDBReader

type KeyValueDBReader interface {
	ReadFrom(db KeyValueDB, key string) error
}

type KeyValueDBReaderWriter

type KeyValueDBReaderWriter interface {
	KeyValueDBReader
	KeyValueDBWriter
}

type KeyValueDBWriter

type KeyValueDBWriter interface {
	WriteTo(db KeyValueDB, key string) error
}

Jump to

Keyboard shortcuts

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