Documentation ¶
Index ¶
- Constants
- func APIResponse(xconf *conf.MetadataConf) gin.HandlerFunc
- func AjaxRequest(cnf *conf.MetadataConf) gin.HandlerFunc
- func Body() gin.HandlerFunc
- func CircuitBreak(conf *conf.MetadataConf) gin.HandlerFunc
- func ContextHandler(exhandler interface{}, name string, engine string, service string, ...) gin.HandlerFunc
- func Delay() gin.HandlerFunc
- func Header(cnf *conf.MetadataConf) gin.HandlerFunc
- func Host(cnf *conf.MetadataConf) gin.HandlerFunc
- func JwtAuth(cnf *conf.MetadataConf) gin.HandlerFunc
- func JwtWriter(cnf *conf.MetadataConf) gin.HandlerFunc
- func Logging(conf *conf.MetadataConf) gin.HandlerFunc
- func MustStatic(s *conf.Static, rPath string) (b bool, xname string)
- func Recovery() gin.HandlerFunc
- func RecoveryWithWriter() gin.HandlerFunc
- func Static(cnf *conf.MetadataConf) gin.HandlerFunc
- func WSContextHandler(exhandler interface{}, name string, engine string, service string, ...) gin.HandlerFunc
- func WebResponse(conf *conf.MetadataConf) gin.HandlerFunc
- type HandlerFunc
- type Hub
- type IInputData
- type InputData
- type MapData
- type Metric
- type ParamData
Constants ¶
View Source
const DELAY_HEADER_KEY = "X-Add-Delay"
DELAY_HEADER_KEY 延时请求头名称
Variables ¶
This section is empty.
Functions ¶
func ContextHandler ¶
func ContextHandler(exhandler interface{}, name string, engine string, service string, mSetting map[string]string) gin.HandlerFunc
ContextHandler api请求处理程序
func JwtWriter ¶
func JwtWriter(cnf *conf.MetadataConf) gin.HandlerFunc
func MustStatic ¶
MustStatic 判断当前文件是否一定是静态文件 0:非静态文件 1:是静态文件 2:未知
func Recovery ¶
func Recovery() gin.HandlerFunc
Recovery returns a middleware that recovers from any panics and writes a 500 if there was one.
func RecoveryWithWriter ¶
func RecoveryWithWriter() gin.HandlerFunc
RecoveryWithWriter returns a middleware for a given writer that recovers from any panics and writes a 500 if there was one.
func WSContextHandler ¶
func WSContextHandler(exhandler interface{}, name string, engine string, service string, mSetting map[string]string) gin.HandlerFunc
WSContextHandler api请求处理程序
Types ¶
type HandlerFunc ¶
func (HandlerFunc) Handle ¶
func (h HandlerFunc) Handle(ctx *gin.Context)
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub maintains the set of active clients and broadcasts messages to the clients.
type IInputData ¶
InputData 输入参数
Source Files ¶
Click to show internal directories.
Click to hide internal directories.