model

package
v1.5.21 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	IoTTopic string `json:"iotTopic"`
	Metric   string `json:"metric"`
}

type Project

type Project struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Type string `json:"mode"`
}

Project represents a single project with minimal fields.

type Sensor

type Sensor struct {
	ID                          string `json:"id"`
	Name                        string `json:"name"`
	Description                 string `json:"description"`
	Active                      bool   `json:"active"`
	Endpoint                    string `json:"endpoint"`
	IoTThingName                string `json:"iotThingName"`
	IoTCertificatePem           string `json:"iotCertificatePem"`
	IoTCertificatePrivateKey    string `json:"iotCertificatePrivateKey"`
	IoTRootCertificateAuthority string `json:"iotRootCertificateAuthority"`
	Logs                        []Log  `json:"logs"`
}

Sensor represents detailed information about a sensor.

Jump to

Keyboard shortcuts

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