ajax

package
v0.0.0-...-816cd83 Latest Latest
Warning

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

Go to latest
Published: May 17, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONLoginError  = "{ \"error\": \"Not logged in.\" }"
	JSONActionError = "{ \"error\": \"Invalid action.\" }"
	JSONError       = "{ \"error\": \"Unknown error.\" }"
)

Variables

This section is empty.

Functions

func HandleAction

func HandleAction(res http.ResponseWriter, req *http.Request, ps httprouter.Params, userInfo common.UserInfo)

Types

type AjaxError

type AjaxError struct {
	Message string `json:"error"`
}

type AjaxResult

type AjaxResult struct {
	Message string `json:"message"`
}

type AjaxResultNum

type AjaxResultNum struct {
	Message string `json:"message"`
	Number  int    `json:"number"`
}

Jump to

Keyboard shortcuts

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