bbolt

package
v0.0.0-...-1e28c7c Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Filename string
	Options  bolt.Options
	Logger   *zap.Logger
}

type Database

type Database struct {
	database.Database
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Database

func (*Database) Close

func (D *Database) Close() error

func (*Database) Get

func (D *Database) Get(timestamp int64) (*database.Snapshot, error)

func (*Database) List

func (D *Database) List() ([]database.Snapshot, error)

func (*Database) Open

func (D *Database) Open() error

func (*Database) Store

func (D *Database) Store(timestamp int64, endpoints []provider.Endpoint) error

Jump to

Keyboard shortcuts

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