mockdb

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDB

func BuildDB() store.DB

Types

type MockDB

type MockDB struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func BadDB

func BadDB() *MockDB

func NewDB

func NewDB() *MockDB

func (*MockDB) Get

func (db *MockDB) Get(from, to time.Time) (measurements []store.Measurement, err error)

func (*MockDB) GetAll

func (db *MockDB) GetAll() (measurements []store.Measurement, err error)

func (*MockDB) Rows

func (db *MockDB) Rows() int

func (*MockDB) Store

func (db *MockDB) Store(measurement store.Measurement) (err error)

Jump to

Keyboard shortcuts

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