Documentation
¶
Overview ¶
Package arabolt provides an implementation of an aranet4 database, backed by bbolt.
Index ¶
- type DB
- func (db *DB) AddDevice(id string) error
- func (db *DB) Close() error
- func (db *DB) Data(id string, beg, end time.Time) iter.Seq2[aranet4.Data, error]
- func (db *DB) Devices() ([]string, error)
- func (db *DB) Last(id string) (aranet4.Data, error)
- func (db *DB) PutData(id string, vs []aranet4.Data) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) Data ¶
Data iterates over data for the device id and the requested time interval [beg, end)
Click to show internal directories.
Click to hide internal directories.