bboltstorage

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataFilePerm = os.FileMode(0755)

	OpenTimeout     = time.Minute
	NoGrowSync      = false
	MmapFlags       = 0
	InitialMmapSize = 0

	ErrDatabaseReadOnly = errors.New("readonly")
	ErrInvalidSeek      = errors.New("invalid seek")
)

Functions

func FromDB

func FromDB(db *bolt.DB) storage.ManagedStorage

func New

func New(conf *BoltConfig) (storage.ManagedStorage, error)

func OpenDatabase

func OpenDatabase(conf *BoltConfig) (*bolt.DB, error)

Types

type BoltConfig

type BoltConfig struct {
	DataFile string
	ReadOnly bool
}

Jump to

Keyboard shortcuts

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