database

package
v0.0.0-...-123d3be Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package database provides primitives for working with the key-value store

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB(dbFilePath string) *bolt.DB

GetDB returns a bolt.db instance Errors if db file could not be opened

func GetValue

func GetValue(db *bolt.DB, key []byte) []byte

GetValue returns value for a given key Retuns nil if no such value is found

func StoreData

func StoreData(db *bolt.DB, key []byte, value []byte)

StoreData strores key-value pairs in DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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