Documentation
¶
Index ¶
- func Bind(records []RouterRecord, efunc ErrorCodeFunc)
- func HandleError(f HandlerFunc, efunc ErrorCodeFunc) gin.HandlerFunc
- func LoadGlobalMiddlewares(conf *viper.Viper, engine *gin.Engine)
- func NewEngine(conf *viper.Viper) *gin.Engine
- func NewServer(conf *viper.Viper, engine *gin.Engine) *http.Server
- func UseLog(engine *gin.Engine)
- type ErrorCodeFunc
- type HandlerFunc
- type IRoutesHTTPFunc
- type RouterGroup
- type RouterRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶ added in v0.1.2
func HandleError(f HandlerFunc, efunc ErrorCodeFunc) gin.HandlerFunc
HandleError TODO
func LoadGlobalMiddlewares ¶
LoadGlobalMiddlewares TODO
Types ¶
type HandlerFunc ¶ added in v0.1.2
HandlerFunc TODO
type IRoutesHTTPFunc ¶
type IRoutesHTTPFunc func(string, ...gin.HandlerFunc) gin.IRoutes
IRoutesHTTPFunc TODO
type RouterGroup ¶
RouterGroup TODO
func NewAPIGroup ¶
func NewAPIGroup(conf *viper.Viper, engine *gin.Engine) RouterGroup
NewAPIGroup TODO
type RouterRecord ¶ added in v0.1.2
type RouterRecord struct { M IRoutesHTTPFunc P string H HandlerFunc }
RouterRecord TODO
Click to show internal directories.
Click to hide internal directories.