types

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert added in v0.2.1

type Alert struct {
	Name        string          `json:"name"`
	Enabled     bool            `json:"enabled"`
	DeviceId    int32           `json:"device_id"`
	SensorId    int32           `json:"sensor_id"`
	AttributeId int32           `json:"attribute_id"`
	OperatorId  int32           `json:"operator_id"`
	MessageId   int32           `json:"message_id"`
	Frequency   int32           `json:"frequency"`
	Value1      float64         `json:"value1"`
	Value2      sql.NullFloat64 `json:"value2"`
}

type AlertNotificationIncoming added in v0.2.1

type AlertNotificationIncoming struct {
	ID        int32   `json:"ID"`
	V0        float64 `json:"0"`
	V1        float64 `json:"1"`
	V2        float64 `json:"2"`
	AttrName  string  `json:"AttrName"`
	OP        string  `json:"OP"`
	AlertName string  `json:"AlertName"`
	SenName   string  `json:"SenName"`
	DevName   string  `json:"DevName"`
	Time      string  `json:"Time"`
	Location  string  `json:"Loc"`
	Unit      string  `json:"Unit"`
}

type Attribute

type Attribute struct {
	Name string `json:"name"`
	Id   int32  `json:"id"`
	Desc string `json:"description"`
	Unit string `json:"unit"`
}

type KeyValuePair

type KeyValuePair struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type List added in v0.2.1

type List struct {
	Id   int32  `json:"id"`
	Name string `json:"name"`
}

type Location

type Location struct {
	Name string `json:"name"`
	Id   int32  `json:"id"`
	Desc string `json:"description"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Message

type Message struct {
	Id       int32  `json:"id"`
	Topic    string `json:"topic"`
	Title    string `json:"title"`
	Tags     string `json:"tags"`
	Payload  string `json:"payload"`
	Priority int    `json:"priority"`
}

type Messages added in v0.2.1

type Messages struct {
	Id    int32  `json:"id"`
	Title string `json:"title"`
}

type NewDevice

type NewDevice struct {
	Name       string  `json:"name"`
	Id         int32   `json:"id"`
	Desc       string  `json:"description"`
	IPAddress  string  `json:"ip_address"`
	Port       int32   `json:"port"`
	MACAddress string  `json:"mac_address"`
	Location   int32   `json:"location"`
	Sensors    []int32 `json:"sensors"`
}

type NewMessage added in v0.2.1

type NewMessage struct {
	Topic    string `json:"topic"`
	Title    string `json:"title"`
	Tags     string `json:"tags"`
	Payload  string `json:"payload"`
	Priority int    `json:"priority"`
}

type OkCreatedJsonMessage

type OkCreatedJsonMessage struct {
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type OkJsonMessage

type OkJsonMessage struct {
	Message string `json:"message"`
}

type OpenWeatherLocation

type OpenWeatherLocation struct {
	Name    string  `json:"name"`
	Country string  `json:"country"`
	State   string  `json:"state"`
	Lat     float64 `json:"lat"`
	Lon     float64 `json:"lon"`
}

type Param

type Param struct {
	Name         string
	DefaultValue string
	Optional     bool
}

type Sensor

type Sensor struct {
	Name string `json:"name"`
	Id   int32  `json:"id"`
	Desc string `json:"description"`
}

type Threshold added in v0.2.1

type Threshold struct {
	Id          int32           `json:"id"`
	Name        string          `json:"name"`
	Enabled     bool            `json:"enabled"`
	DeviceId    int32           `json:"device_id"`
	SensorId    int32           `json:"sensor_id"`
	AttributeId int32           `json:"attribute_id"`
	OperatorId  int32           `json:"operator_id"`
	MessageId   int32           `json:"message_id"`
	Frequency   int32           `json:"frequency"`
	Value1      float64         `json:"value1"`
	Value2      sql.NullFloat64 `json:"value2"`
}

type TokenClaims

type TokenClaims struct {
	Username string `json:"username"`
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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