db

package
v0.0.0-...-aa48383 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 NewDB

func NewDB(file string) (*DB, error)

func (*DB) Close

func (d *DB) Close()

func (*DB) GetRecentStats

func (d *DB) GetRecentStats(days int) ([]sensor.AtmosphericDataLine, error)

GetRecentStats retrieves stats in reverse chronological order.

func (*DB) RecordAtmosphericMeasurement

func (d *DB) RecordAtmosphericMeasurement(mes sensor.AtmosphericDataLine, deviceID uint8) error

Jump to

Keyboard shortcuts

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