form

package
v0.0.0-...-5ba78f1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeviceForm

type CreateDeviceForm struct {
	Name       string `form:"name" json:"name" binding:"required,max=10"`
	Type       string `form:"type" json:"type" binding:"required"`
	ServerIp   string `form:"server_ip" json:"server_ip" binding:"required,max=15"`
	ServerPort string `form:"server_port" json:"server_port" binding:"required,max=5"`
	State      string `form:"state" json:"state" binding:"required,oneof=running idle"`
}

type CreateProtocolForm

type CreateProtocolForm struct {
	DeviceId int            `form:"device_id" json:"device_id" binding:"required"`
	Name     string         `form:"name" json:"name" binding:"required"`
	Content  datatypes.JSON `form:"content" json:"content" binding:"required"`
	Qos      *int           `form:"qos" json:"qos" binding:"required"`
	Type     *int           `form:"type" json:"type" binding:"required"`
	SubTopic string         `form:"sub_topic" json:"sub_topic"`
	PubTopic string         `form:"pub_topic" json:"pub_topic" binding:"required"`
	Strategy datatypes.JSON `form:"strategy" json:"strategy"`
}

type RestartDeviceForm

type RestartDeviceForm struct {
	DeviceIDS []int `form:"device_ids" json:"device_ids" binding:"required"`
}

Jump to

Keyboard shortcuts

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