models

package
v0.0.0-...-0c72d35 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	GeneratorID    string  `json:"generatorID"`
	GeneratorTopic string  `json:"generatorTopic"`
	Lat            float32 `json:"lat"`
	Lon            float32 `json:"lon"`
	Temperature    Message `json:"temperature"`
	Power          Message `json:"power"`
	Load           Message `json:"load"`
	CurrentFuel    Message `json:"currentFuel"`
	Base_fuel      Message `json:"base_fuel"`
	Fuel_used      Message `json:"fuel_used"`
}

type Message

type Message struct {
	ItemTopic         string      `json:"ItemTopic"`
	ItemId            string      `json:"ItemId"`
	ItemName          string      `json:"ItemName"`
	ItemValue         interface{} `json:"ItemValue"`
	ItemOldValue      interface{} `json:"ItemOldValue"`
	ItemDataType      string      `json:"ItemDataType"`
	ChangedTimestamp  string      `json:"ChangedTimestamp"`
	PreviousTimestamp string      `json:"PreviousTimestamp"`
}

func NewMessage

func NewMessage(value interface{}, name string, id string, datType string) Message

Jump to

Keyboard shortcuts

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