Discover Packages
github.com/codebulletin/AQMFluxAPI
types
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Nov 28, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Attribute struct {
Name string `json:"name"`
Id int32 `json:"id"`
Desc string `json:"description"`
}
type KeyValuePair struct {
Key string `json:"key"`
Value string `json:"value"`
}
type Location struct {
Name string `json:"name"`
Id int32 `json:"id"`
Desc string `json:"description"`
}
type LoginRequest struct {
Username string `json:"username"`
Password string `json:"password"`
}
type Message struct {
Topic string `json:"topic"`
Title string `json:"title"`
Tags []string `json:"tags"`
Payload string `json:"payload"`
Priority int `json:"priority"`
}
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 OkCreatedJsonMessage struct {
Message string `json:"message"`
Data interface{} `json:"data"`
}
type OkJsonMessage struct {
Message string `json:"message"`
}
type OpenWeatherLocation struct {
Name string `json:"name"`
Country string `json:"country"`
State string `json:"state"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
}
type Sensor struct {
Name string `json:"name"`
Id int32 `json:"id"`
Desc string `json:"description"`
}
type TokenClaims struct {
Username string `json:"username"`
jwt.RegisteredClaims
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.