storage

package
v0.0.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLevelDBStorage

func CloseLevelDBStorage()

CloseLevelDBStorage closes any open instance of levelDB

func GetLevelDBStorage

func GetLevelDBStorage() *leveldb.DB

GetLevelDBStorage returns levelDB instance if initialised panics if not initialised

func NewLevelDBStorage

func NewLevelDBStorage(path string) (*leveldb.DB, error)

GetStorage is a singleton implementation returning the default database as configured

Types

type Bootstrapper

type Bootstrapper struct {
}

func (*Bootstrapper) Bootstrap

func (*Bootstrapper) Bootstrap(context map[string]interface{}) error

Jump to

Keyboard shortcuts

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