Documentation ¶ Index ¶ func BuildDB() store.DB type MockDB func BadDB() *MockDB func NewDB() *MockDB func (db *MockDB) Get(from, to time.Time) (measurements []store.Measurement, err error) func (db *MockDB) GetAll() (measurements []store.Measurement, err error) func (db *MockDB) Rows() int func (db *MockDB) Store(measurement store.Measurement) (err error) 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) Source Files ¶ View all Source files mockdb.go Click to show internal directories. Click to hide internal directories.