boltdb

package
v0.0.0-...-9ea7349 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: GPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(db string) *Store

NewStore returns a new instance of Store.

func (*Store) Close

func (s *Store) Close() error

Close closes the store.

func (*Store) Delete

func (s *Store) Delete(key []byte) error

func (*Store) ForEach

func (s *Store) ForEach(fn func(k, v []byte) error)

func (*Store) Get

func (s *Store) Get(key []byte, t interface{}) error

func (*Store) Open

func (s *Store) Open() error

func (*Store) Path

func (s *Store) Path() string

Path returns the data path.

func (*Store) Ping

func (s *Store) Ping() error

Ping connects to the database. Returns nil if successful.

func (*Store) Put

func (s *Store) Put(key []byte, t interface{}) error

Jump to

Keyboard shortcuts

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