common

package
v0.0.0-...-8df46b2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: MIT Imports: 1 Imported by: 4

README

#atop-common

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStartHook

func AddStartHook(hf hookfunc, priority ...int)

AddStartHook is used to register the hookfunc The hookfuncs will run in RunStartHook() priority 范围 0-10;执行顺序为:0->10.

func RunStartHook

func RunStartHook()

RunStartHook is

Types

type ErrBadBody

type ErrBadBody struct {
	Message string
}

ErrBadBody 不合理的请求内容.

func BadBodyErr

func BadBodyErr(a ...interface{}) ErrBadBody

BadBodyErr 非法请求内容.

func BadBodyErrf

func BadBodyErrf(format string, a ...interface{}) ErrBadBody

BadBodyErrf 非法请求内容.

func (ErrBadBody) Error

func (e ErrBadBody) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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