bolt

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Profile = "bolt"

Variables

View Source
var InvalidPropertiesError = errors.New("properties must not be nil")

Functions

func GetDataSource

func GetDataSource() *dataSource

func GetRepository

func GetRepository() *repository

Types

type DataSource

type DataSource interface {
	Open(properties *Properties) error
	Close() error
	IsOpened() bool
	DB() *bolt.DB
}

type Properties added in v1.3.0

type Properties struct {
	at.ConfigurationProperties `value:"bolt"`

	Database string      `json:"database"`
	Mode     os.FileMode `json:"mode"`
	Timeout  int64       `json:"timeout"`
}

type Repository

type Repository interface {
	data.KVRepository
}

Jump to

Keyboard shortcuts

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