db

package
v0.0.0-...-41ec502 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltStore

type BoltStore struct {
	BucketName string
	DBFile     string
}

func NewBoltStore

func NewBoltStore(bucketName, dbFile string) (*BoltStore, error)

func (*BoltStore) Delete

func (store *BoltStore) Delete(key string) error

func (*BoltStore) HasData

func (store *BoltStore) HasData(key string) (err error, hasData bool)

func (*BoltStore) Read

func (store *BoltStore) Read(key string, outValue interface{}) error

func (*BoltStore) Write

func (store *BoltStore) Write(key string, value interface{}) error

type Store

type Store interface {
	Read(key string, outValue interface{}) error
	Write(key string, value interface{}) error
	Delete(key string) error
	HasData(key string) (error, bool)
}

Jump to

Keyboard shortcuts

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