db

package
v0.0.0-...-124abf3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase() *Database

func (*Database) LoadLatestEntry

func (data *Database) LoadLatestEntry() WeatherEntry

func (*Database) SaveEntry

func (data *Database) SaveEntry(outTemp, inTemp, humidity float64)

type WeatherEntry

type WeatherEntry struct {
	TempOutside float64
	TempInside  float64
	Humidity    float64
	TimeUnix    int
}

Jump to

Keyboard shortcuts

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