Documentation ¶
Index ¶
- Variables
- func DefaultHandle(map[string]string) interface{}
- func DoGetProcess(c *gin.Context, p GetHandler)
- func DoOptionProcess(c *gin.Context, p OptionHandler)
- func DoPostProcess(c *gin.Context, p PostHandler)
- func DoPostProcessMap(c *gin.Context, p PostHandlerMap)
- func InitHandler(router *gin.Engine)
- func LoggerM() gin.HandlerFunc
- func LoggerWithWriter() gin.HandlerFunc
- func RecoveryM() gin.HandlerFunc
- func RegisterHandler(relativePath string, p interface{})
- type GetHandler
- type IndicatorDef
- type OptionHandler
- type PathHandler
- type PostHandler
- type PostHandlerMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ResSlice []*PathHandler
Functions ¶
func DefaultHandle ¶
func DoGetProcess ¶
func DoGetProcess(c *gin.Context, p GetHandler)
func DoOptionProcess ¶
func DoOptionProcess(c *gin.Context, p OptionHandler)
func DoPostProcess ¶
func DoPostProcess(c *gin.Context, p PostHandler)
func DoPostProcessMap ¶
func DoPostProcessMap(c *gin.Context, p PostHandlerMap)
func InitHandler ¶
func LoggerM ¶
func LoggerM() gin.HandlerFunc
func LoggerWithWriter ¶
func LoggerWithWriter() gin.HandlerFunc
func RecoveryM ¶
func RecoveryM() gin.HandlerFunc
Types ¶
type GetHandler ¶
type IndicatorDef ¶
type OptionHandler ¶
type PathHandler ¶
type PathHandler struct { Path string Handler interface{} }
type PostHandler ¶
type PostHandler func([]byte) interface{}
type PostHandlerMap ¶
Click to show internal directories.
Click to hide internal directories.