db

package
v1.0.0-alpha.25 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: GPL-3.0 Imports: 2 Imported by: 51

Documentation

Overview

Package db defines a persistent backend for the slasher service.

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
Package iface defines an interface for the slasher database, providing more advanced interfaces such as a ReadOnlyDatabase.
Package iface defines an interface for the slasher database, providing more advanced interfaces such as a ReadOnlyDatabase.
Package kv defines a bolt-db, key-value store implementation of the slasher database interface.
Package kv defines a bolt-db, key-value store implementation of the slasher database interface.
Package testing defines useful helper functions for unit tests with the slasher database.
Package testing defines useful helper functions for unit tests with the slasher database.
Package types includes important database-related types for slasher-specific logic.
Package types includes important database-related types for slasher-specific logic.

Jump to

Keyboard shortcuts

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