Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CounterEvent ¶
type CounterEvent struct { ID uint `gorm:"primary_key"` // primary key CounterID uint `sql:"index"` // foreign key of the counter Timestamp uint64 `sql:"index` // timestamp of the event EventType EventType // see above Delta int64 // delta multiplied by 1000 Reading uint64 // reading multiplied by 1000 }
func NewAbsCorrCounterEvent ¶
func NewAbsCorrCounterEvent(counter Counter, delta int64) CounterEvent
func NewLastCounterEvent ¶
func NewLastCounterEvent(counter Counter) CounterEvent
func NewTickCounterEvent ¶
func NewTickCounterEvent(counter Counter) CounterEvent
type FlagState ¶
type FlagState struct { ID uint `gorm:"primary_key"` // primary key FlagID uint `sql:"index"` // foreign key of the flag Timestamp uint64 `sql:"index` // timestamp of the event State uint8 }
func NewFlagState ¶
type Thermometer ¶
type ThermometerReading ¶
type ThermometerReading struct { ID uint `gorm:"primary_key"` // primary key ThermometerID uint `sql:"index"` // foreign key of the thermometer Timestamp uint64 `sql:"index` // timestamp of the event Reading uint64 // reading multiplied by 1000 }
func NewThermometerReading ¶
func NewThermometerReading(thermometer Thermometer, reading uint64) ThermometerReading
Click to show internal directories.
Click to hide internal directories.