base

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	beego.Controller
}

Controller wraps general functionality.

func (Controller) Validate

func (base Controller) Validate(val interface{}) error

Validate the parameters.

func (Controller) WriteStatusAndDataJSON

func (base Controller) WriteStatusAndDataJSON(status int, data interface{})

WriteStatusAndDataJSON write JSON encoding status (and data) to controller and sends a response. The data is optional.

func (Controller) WriteStatusAndTokenJSON

func (base Controller) WriteStatusAndTokenJSON(status int, token interface{})

WriteStatusAndTokenJSON write JSON encoding status and token to controller and sends a response.

Jump to

Keyboard shortcuts

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