Versions in this module Expand all Collapse all v0 v0.11.1 May 9, 2024 v0.11.0 Mar 28, 2024 Changes in this version type Measurement + func (m Measurement) LogValue() slog.Value v0.10.0 Mar 15, 2024 Changes in this version + type Measurement struct + Intensity float64 + Power float64 + Timestamp time.Time + Weather string + func (m Measurement) Fold() Measurement + type Measurements []Measurement + func (ms Measurements) Fold() Measurements + type PostgresDB struct + DBH *sqlx.DB + func NewPostgresDB(host string, port int, database string, user string, password string) (*PostgresDB, error) + func (db *PostgresDB) Get(from, to time.Time) (measurements Measurements, err error) + func (db *PostgresDB) GetWeather(id int) (string, error) + func (db *PostgresDB) GetWeatherID(weather string) (int, error) + func (db *PostgresDB) Store(measurement Measurement) error