Documentation ¶
Index ¶
- func ActiveRequests() int
- func FromHandlerFunc(f http.HandlerFunc) http.HandlerFunc
- func FromMethod(method Method, decorators ...Decorator) http.HandlerFunc
- func FromMethodRaw(f func(*Meta, http.ResponseWriter)) http.HandlerFunc
- func RegisterHandler(router *mux.Router, path string, f http.HandlerFunc)
- func RegisterMethod(router *mux.Router, path string, method Method, decorators ...Decorator)
- func RegisterMethodRaw(router *mux.Router, path string, f func(*Meta, http.ResponseWriter))
- func WaitQuiescent(timeout time.Duration) error
- type Decorator
- type Error
- type ErrorHandler
- type Fail
- type Meta
- type Method
- type Result
- func (this Result) Bool() bool
- func (this Result) Date() *time.Time
- func (this Result) Exists() bool
- func (this Result) Float64() float64
- func (this Result) Int() int
- func (this Result) Int32() int32
- func (this Result) Int64() int64
- func (this Result) Int64s() []int64
- func (this Result) Ints() []int
- func (this Result) Json() gjson.Result
- func (this Result) String() string
- func (this Result) Strings() []string
- func (this Result) Unmarshal(v interface{}) error
- type Success
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveRequests ¶
func ActiveRequests() int
func FromHandlerFunc ¶
func FromHandlerFunc(f http.HandlerFunc) http.HandlerFunc
func FromMethod ¶
func FromMethod(method Method, decorators ...Decorator) http.HandlerFunc
func FromMethodRaw ¶
func FromMethodRaw(f func(*Meta, http.ResponseWriter)) http.HandlerFunc
func RegisterHandler ¶
func RegisterHandler(router *mux.Router, path string, f http.HandlerFunc)
原生回调,用于第三方平台与服务器的回调
func RegisterMethod ¶
authentication: 是否需要登录
func RegisterMethodRaw ¶
半原生回调,用于第三方平台与服务器的表单回调, 不适用body格式的请求(比如XML)
func WaitQuiescent ¶
Types ¶
type ErrorHandler ¶
type ErrorHandler struct { }
type Fail ¶
type Meta ¶
Click to show internal directories.
Click to hide internal directories.