Documentation
¶
Index ¶
- Variables
- func Cors() gin.HandlerFunc
- func GinLogger(logger *zap.SugaredLogger) gin.HandlerFunc
- func GinRecovery(logger *zap.SugaredLogger, stack bool, response func(*gin.Context, any)) gin.HandlerFunc
- func Init(opts *Options)
- func InitSwagger(r *gin.Engine)
- func KeyAuth() gin.HandlerFunc
- func Run(ctx context.Context)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Host string Port int WG *sync.WaitGroup )
Functions ¶
func GinRecovery ¶
func GinRecovery(logger *zap.SugaredLogger, stack bool, response func(*gin.Context, any)) gin.HandlerFunc
GinRecovery recover掉项目可能出现的panic
func InitSwagger ¶ added in v0.4.3
Types ¶
Click to show internal directories.
Click to hide internal directories.