types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.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 Attribute

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

type KeyValuePair

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

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 {
	Topic    string   `json:"topic"`
	Title    string   `json:"title"`
	Tags     []string `json:"tags"`
	Payload  string   `json:"payload"`
	Priority int      `json:"priority"`
}

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 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 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