models

package
v0.0.0-...-780872b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firing

type Firing struct {
	ID                   uint
	StartDate            time.Time
	EndDate              time.Time
	StartDateAmbientTemp float64
	ConeNumber           string
	Name                 string
	Notes                string

	HighNotificationTemp float64
	LowNotificationTemp  float64 `gorm:"default:100.0"`
	HighNotificationSent bool    `gorm:"default:0"`
	LowNotificationSent  bool    `gorm:"default:0"`

	TemperatureReadings []TemperatureReading
	Photos              []Photo
}

func (*Firing) Duration

func (f *Firing) Duration() int64

type Photo

type Photo struct {
	ID          uint
	FiringID    uint
	CreatedDate time.Time
	// contains filtered or unexported fields
}

type Stats

type Stats struct {
	ID                 uint
	CreatedDate        time.Time `gorm:"default:(datetime('now','localtime'))"`
	Uptime             uint64
	FreeMemory         uint64
	Temperature        float64
	AmbientTemperature float64
	CPUTemperature     float64
	Humidity           float64
}

type TemperatureReading

type TemperatureReading struct {
	ID          uint
	CreatedDate time.Time `gorm:"default:(datetime('now','localtime'))"`
	FiringID    uint      `gorm:"index"`
	Inner       float64
	Outer       float64
}

Jump to

Keyboard shortcuts

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