Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetHandleInViper ¶
SetHandleInViper sets a handle in Viper
Types ¶
type Counter ¶
type Counter string
Counter type
const (
CounterWALPos Counter = "WalPos"
)
These are counter names in the DB
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is an interface to a bolt db
func GetHandleFromViper ¶
GetHandleFromViper retrieves a handle from Viper
func (*DB) BucketInit ¶
BucketInit creates the bucket with provided name if it does not exist
func (*DB) CounterGet ¶
CounterGet gets a value of the specified counter in the provided bucket
Click to show internal directories.
Click to hide internal directories.