persistence

package
v0.0.0-...-59b4e17 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *bolt.DB

DB is the lazy-loaded reference to the BoltDB instance. Use the GetDB() function to obtain this.

Functions

func GetDB

func GetDB() (*bolt.DB, error)

GetDB returns the singleton instance of the BoltDB connection. This is not a threadsafe object, but transactions are. Any caller using this object should use a transaction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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