storage

package
v0.0.0-...-184715f Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 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 BoltStorage

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

BoltStorage is a wrapper over Bolt DB

func New

func New(boltPath ...string) (*BoltStorage, error)

New returns a wrapper over Bolt DB

func (*BoltStorage) Get

func (s *BoltStorage) Get(name string) (value string, err error)

Get returns a content of the pad

func (*BoltStorage) NextCounter

func (s *BoltStorage) NextCounter() (next uint64, err error)

NextCounter returns next number of the counter

func (*BoltStorage) Path

func (s *BoltStorage) Path() string

Path returns the path to currently open database file

func (*BoltStorage) Set

func (s *BoltStorage) Set(name string, value string) error

Set update a content of the pad

Jump to

Keyboard shortcuts

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