Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCustomLogs ¶
Add global logging middlewares to the router
func CustomLogMiddleware ¶
This middleware adds a logger to the router that logs every requests
func CustomRecoverer ¶
This middleware adds a panic recoverer to the router.
If a logger lives inside the context, do a panic log, or else it just ignores the panic
func ProvideEmptyRouter ¶
Create a new HTTP server that is routed using a Chi router. Will add zap.Logger as custom log for the engine.
var Module = fx.Options( qshttp.ProvideHttpConfigs(&qshttp.EnvConfigType{}), qschi.ProvideEmptyRouter(), )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.