Documentation ¶
Index ¶
- func CreateDefaultEngine(config *Config)
- func NewGinEngine(cfg *Config, middlewares ...gin.HandlerFunc) *gin.Engine
- func NewStarter(middlewares ...gin.HandlerFunc) *starter
- func RegisterApi(module IApi)
- func XEngine() *gin.Engine
- func XFEngine(f func(c *gin.Engine) error) error
- func ZapLoggerMiddleware() gin.HandlerFunc
- func ZapRecoveryMiddleware(stack bool) gin.HandlerFunc
- type ApiRegister
- type Config
- type IApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultEngine ¶
func CreateDefaultEngine(config *Config)
func NewGinEngine ¶
func NewGinEngine(cfg *Config, middlewares ...gin.HandlerFunc) *gin.Engine
func NewStarter ¶
func NewStarter(middlewares ...gin.HandlerFunc) *starter
func ZapLoggerMiddleware ¶
func ZapLoggerMiddleware() gin.HandlerFunc
func ZapRecoveryMiddleware ¶
func ZapRecoveryMiddleware(stack bool) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.