controllers

package
v0.0.0-...-dd67137 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateDeviceTwinWithDesiredTrack

func UpdateDeviceTwinWithDesiredTrack(cmd string) bool

UpdateDeviceTwinWithDesiredTrack patches the desired state of the device twin with the command.

func UpdateStatus

func UpdateStatus() map[string]string

Types

type DeviceStatus

type DeviceStatus struct {
	Status devices.DeviceStatus `json:"status"`
}

DeviceStatus is used to patch device status

type TrackController

type TrackController struct {
	beego.Controller
}

func (*TrackController) AjaxResponse

func (Controller *TrackController) AjaxResponse(resultCode int, resultString map[string]string, data interface{})

AjaxResponse returns a standard ajax response.

func (*TrackController) ControlTrack

func (controller *TrackController) ControlTrack()

Control

func (*TrackController) Index

func (controller *TrackController) Index()

Index is the initial view

Jump to

Keyboard shortcuts

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