database

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUpdatedTime

func SetUpdatedTime(bucket *bbolt.Bucket, path string, t time.Time) error

Types

type DB

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

func Open

func Open(path string) (*DB, error)

func (*DB) GetUpdatedTime

func (db *DB) GetUpdatedTime(b backend.Backend, path string) (int64, error)

func (*DB) InitializeBackends

func (db *DB) InitializeBackends(backends []backend.Backend) error

func (*DB) SetUpdatedTime

func (db *DB) SetUpdatedTime(b backend.Backend, path string, t time.Time) error

func (*DB) Update

func (db *DB) Update(b backend.Backend, callback func(tx *bbolt.Tx, bucketName []byte) error) error

Jump to

Keyboard shortcuts

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