database

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IKVDatabase added in v1.5.10

type IKVDatabase interface {
	types.ICloser

	Push(message.IMessage) error
	Load(string) (message.IMessage, error)
	Hashes() ([]string, error)

	Settings() ISettings
	GetOriginal() database.IKVDatabase
}

func NewKeyValueDB

func NewKeyValueDB(pSett ISettings) (IKVDatabase, error)

func NewVoidKeyValueDB added in v1.5.13

func NewVoidKeyValueDB(pSett ISettings) IKVDatabase

type ISettings

type ISettings interface {
	GetPath() string
	GetCapacity() uint64
	GetMessageSizeBytes() uint64
	GetWorkSizeBits() uint64
}

func NewSettings

func NewSettings(pSett *SSettings) ISettings

type IWrapperDB added in v1.5.6

type IWrapperDB interface {
	types.ICloser

	Get() IKVDatabase
	Set(IKVDatabase) IWrapperDB
}

func NewWrapperDB added in v1.5.6

func NewWrapperDB() IWrapperDB

type SSettings

type SSettings sSettings

Jump to

Keyboard shortcuts

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