boltdb

package
v0.0.0-...-5b66c9e Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

Backend implements backend interface

func NewBackend

func NewBackend(options Options) (backend *Backend)

NewBackend creates a new backend

func (*Backend) Close

func (c *Backend) Close() (err error)

Close closes the

func (*Backend) Del

func (c *Backend) Del(keys []string) (err error)

Del deletes a key in the store

func (*Backend) Get

func (c *Backend) Get(key string) (value []byte, err error)

Get gets a value by key

func (*Backend) Open

func (c *Backend) Open() (err error)

Open initializes the backend db

func (*Backend) Put

func (c *Backend) Put(entries []*backend.KeyValue) (err error)

Put puts a key in the store

type Options

type Options struct {
	Path string
}

Options config configuration options

Jump to

Keyboard shortcuts

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