boltx

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Directory  string
	Filename   string
	BucketName string
}

Options : BBolt DB

type Provider

type Provider struct {
	BBoltDB *Options /// DB Options
	// contains filtered or unexported fields
}

Provider of BBolt DB

func New

func New(options *Options) (*Provider, error)

New BBoltDB Instance

func (*Provider) Close

func (p *Provider) Close() error

Close DB Connection

func (*Provider) Get

func (p *Provider) Get(key string) (string, error)

Get Variable Value

func (*Provider) GetAllExplicit

func (p *Provider) GetAllExplicit() (map[string]string, error)

GetAllExplicit Variables and their Values

func (*Provider) GetAllImplicit

func (p *Provider) GetAllImplicit() (map[string]string, error)

GetAllImplicit Variables and Values

func (*Provider) GetAllVarNames

func (p *Provider) GetAllVarNames() (map[string]bool, error)

GetAllVarNames

func (*Provider) ProviderName

func (m *Provider) ProviderName() string

ProviderName i.e DB backend here (mongodb)

func (*Provider) Put

func (p *Provider) Put(key, value string, isExplicit bool) error

Put Variable to DB

Jump to

Keyboard shortcuts

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