Documentation ¶
Overview ¶
Package utils contains utils function that are shared by all layers of the application.
Index ¶
- func BindData(c *gin.Context, log *otelzap.Logger, req interface{}) bool
- func BindForm(c *gin.Context, log *otelzap.Logger, req interface{}) bool
- func BindHeader(c *gin.Context, log *otelzap.Logger, req interface{}) bool
- func BindQuery(c *gin.Context, log *otelzap.Logger, req interface{}) bool
- func BindURI(c *gin.Context, log *otelzap.Logger, req interface{}) bool
- func InitGin(ctx context.Context, logger *otelzap.Logger, conf *configs.Config) *gin.Engine
- func InitLogger(ctx context.Context, cfg *configs.AppInfo) *otelzap.Logger
- func InitSwagger(ctx context.Context, logger *otelzap.Logger, router *gin.Engine, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindHeader ¶
BindHeader is helper function, returns false if data is not bound
func InitLogger ¶
InitLogger return a new instance of a Zap Logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.