models

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

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PACKET_TABLE_NAME      = "Packets"
	MEASUREMENT_TABLE_NAME = "Measurements"
	STRUCTURES_TABLE_NAME  = "Structures"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	Name    string
	IP      string
	Packets []Packet
}

func NewBoard

func NewBoard(name string, ip string, sheet models.Sheet) Board

type Description

type Description struct {
	ID   string
	Name string
	Type string
}

type GlobalInfo

type GlobalInfo struct {
	BackendIP        string
	BoardToIP        map[string]string
	UnitToOperations map[string]string
	ProtocolToPort   map[string]string
	BoardToId        map[string]string
	MessageToId      map[string]string
}

type Packet

type Packet struct {
	Description Description
	Values      []Value
}

type Structure

type Structure struct {
	PacketName   string
	Measurements []string
}

type Value

type Value struct {
	ID           string
	Name         string
	Type         string
	PodUnits     string
	DisplayUnits string
	SafeRange    string
	WarningRange string
}

Jump to

Keyboard shortcuts

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