Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoServerFound = errors.New("no engine was found, must create a new HTTP server to begin with") ErrNoRouterFound = errors.New("no gin.Engine was found, must create a new empty gin.Engine first") )
Functions ¶
func AddCustomLogs ¶
Add logger to gin.Engine
func ProvideEmptyRouter ¶
Create a new HTTP server that is routed using a Gin engine. Will add zap.Logger as custom log for the engine.
var Module = fx.Options( qshttp.ProvideHttpConfigs(&qshttp.EnvConfigType{}), qsgin.ProvideEmptyRouter(), )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.