db

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: GPL-3.0 Imports: 2 Imported by: 49

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(dirPath string, cfg *kv.Config) (*kv.Store, error)

NewDB initializes a new DB.

Types

type Database added in v0.3.2

type Database = iface.Database

Database defines the necessary methods for the Slasher's DB which may be implemented by any key-value or relational database in practice. This is the full database interface which should not be used often. Prefer a more restrictive interface in this package.

type FullAccessDatabase added in v0.3.2

type FullAccessDatabase = iface.FullAccessDatabase

FullAccessDatabase exposes Slasher's DB write and read functions for all slasher related buckets.

type ReadOnlyDatabase added in v0.3.2

type ReadOnlyDatabase = iface.ReadOnlyDatabase

ReadOnlyDatabase exposes the Slasher's DB read only functions for all slasher related buckets.

type WriteAccessDatabase added in v0.3.2

type WriteAccessDatabase = iface.WriteAccessDatabase

WriteAccessDatabase exposes the Slasher's DB writing functions for all slasher related buckets.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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