template

package
v0.0.0-...-7695c73 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const HTTP_CODE_ACCESS_FORBIDDEN = 403
View Source
const HTTP_CODE_ACCESS_UNAUTHORIZED = 401
View Source
const HTTP_CODE_ENTITY_CONFLICT = 409
View Source
const HTTP_CODE_ENTITY_CREATED = 201
View Source
const HTTP_CODE_ENTITY_NOEXIST = 404
View Source
const HTTP_CODE_INVALID_REQUEST = 400
View Source
const HTTP_CODE_NOALLOWED_REQUEST = 405
View Source
const HTTP_CODE_SERVER_ERROR = 500
View Source
const HTTP_CODE_TOOMANY_REQUEST = 429
View Source
const HTTP_CODE_VALID_REQUEST = 200

Variables

This section is empty.

Functions

func DeleteOK

func DeleteOK() int

func Error

func Error(err error) (entry map[string]interface{}, code int)

func GetOK

func GetOK() int

func PostOK

func PostOK() int

func PutOK

func PutOK() int

func QueryParamsCount

func QueryParamsCount(url *net.URL) int

func Success

func Success(msg string) (entry map[string]string, code int)

Types

type ResponseDefinition

type ResponseDefinition struct {
	// contains filtered or unexported fields
}

func NewResponseDefinition

func NewResponseDefinition(input *context.Input) *ResponseDefinition

func (*ResponseDefinition) GetLimit

func (this *ResponseDefinition) GetLimit() int

func (*ResponseDefinition) GetOrderBy

func (this *ResponseDefinition) GetOrderBy() string

func (*ResponseDefinition) GetOrderDir

func (this *ResponseDefinition) GetOrderDir() string

func (*ResponseDefinition) GetPage

func (this *ResponseDefinition) GetPage() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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