boltdb

package
v0.0.0-...-f2f3934 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 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 Client

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

func New

func New() *Client

New returns a new boltdb client

func (*Client) Close

func (c *Client) Close()

Close will close the database connection

func (*Client) Get

func (c *Client) Get(bucket, key string) (string, error)

Get returns the value for a given bucket and key

func (*Client) Open

func (c *Client) Open() error

Open will open a connection

func (*Client) Update

func (c *Client) Update(bucket, key, value string) error

Update inserts a key value into our db boltdb.Update provides a consistent view of the db as part of the transaction

Jump to

Keyboard shortcuts

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