db

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-3.0 Imports: 7 Imported by: 185

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupHandler

func BackupHandler(db Database) func(http.ResponseWriter, *http.Request)

BackupHandler for accepting requests to initiate a new database backup.

Types

type Database

type Database = iface.Database

Database defines the necessary methods for Prysm's eth2 backend which may be implemented by any key-value or relational database in practice.

func NewDB

func NewDB(dirPath string) (Database, error)

NewDB initializes a new DB.

Directories

Path Synopsis
Package filters specifies utilities for building a set of data attribute filters to be used when filtering data through database queries in practice.
Package filters specifies utilities for building a set of data attribute filters to be used when filtering data through database queries in practice.
Package iface exists to prevent circular dependencies when implementing the database interface.
Package iface exists to prevent circular dependencies when implementing the database interface.

Jump to

Keyboard shortcuts

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