db

package
v0.0.0-...-152fc97 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSession

func GetSession(dbName string) *bolt.DB

Get DB sessions

Types

type BoltDB

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

DB Connection

func (*BoltDB) CreateBucket

func (b *BoltDB) CreateBucket(name string) error

Creating bucket

func (*BoltDB) GetAllBootActions

func (b *BoltDB) GetAllBootActions(bucket string) (error, map[string]string)

GetAllBootActions gets all boot action stored in the database

func (*BoltDB) GetBootAction

func (b *BoltDB) GetBootAction(bucket, key string) (error, string)

Getting bootaction from database

func (*BoltDB) PutBootAction

func (b *BoltDB) PutBootAction(bucket, key, value string) error

Storing boot action into the database

Jump to

Keyboard shortcuts

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