Documentation ¶
Index ¶
- func AddRequestFilter(f RequestFilter)
- func AddResponseFilter(f ResponseFilter)
- func ForEachRequestFilter(w http.ResponseWriter, r *http.Request, logger *zap.Logger) bool
- func ForEachResponseFilter(w http.ResponseWriter, r *http.Request, logger *zap.Logger, data interface{}, ...) (interface{}, *exception.Exception)
- type Binder
- type Filter
- type JSONRender
- type RequestFilter
- type ResponseFilter
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddResponseFilter ¶
func AddResponseFilter(f ResponseFilter)
func ForEachRequestFilter ¶
遍历执行请求拦截器
Types ¶
type JSONRender ¶
type JSONRender struct { }
type RequestFilter ¶
type RequestFilter interface {
Handler(w http.ResponseWriter, r *http.Request, logger *zap.Logger) bool
}
前置过滤器 返回false不在继续执行
Click to show internal directories.
Click to hide internal directories.