Documentation
¶
Index ¶
- func Cors() gin.HandlerFunc
- func GinLogger(logger *zap.SugaredLogger) gin.HandlerFunc
- func GinRecovery(logger *zap.SugaredLogger, stack bool, ...) gin.HandlerFunc
- func Init(opt *InitOptions)
- func InitSwagger(r *gin.Engine)
- func KeyAuth() gin.HandlerFunc
- func Run(ctx context.Context)
- type InitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinRecovery ¶
func GinRecovery(logger *zap.SugaredLogger, stack bool, response func(*gin.Context, interface{})) gin.HandlerFunc
GinRecovery recover掉项目可能出现的panic
func Init ¶
func Init(opt *InitOptions)
func InitSwagger ¶ added in v0.4.3
Types ¶
type InitOptions ¶
type InitOptions struct {
Debug bool
}
Click to show internal directories.
Click to hide internal directories.