controllers

package
v0.0.0-...-c32210f Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	beego.Controller
}

func (*BaseController) Options

func (this *BaseController) Options()

type DomoticaController

type DomoticaController struct {
	BaseController
}

func (*DomoticaController) Post

func (this *DomoticaController) Post()

Executes the request by forwarding it to the bridge

type GenericResponse

type GenericResponse struct {
	StatusCode  int //Application Status code
	Message     string
	MessageType string
	Data        interface{}
}

func CreateFailureResponse

func CreateFailureResponse(status int, message, messageType string, data interface{}) *GenericResponse

func CreateResponse

func CreateResponse(status int, message, messageType string, data interface{}) *GenericResponse

func CreateSuccessResponse

func CreateSuccessResponse(message, messageType string, data interface{}) *GenericResponse

Jump to

Keyboard shortcuts

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