Versions in this module Expand all Collapse all v0 v0.2.5 Mar 12, 2024 Changes in this version + const APP_CONTEXT_KEY + const LOCALIZER_KEY + const VALIDATION_EMAIL + const VALIDATION_NOT_ALL_FIELDS_ZERO + func HandlerAdapter(handler HandlerFunc) gin.HandlerFunc + func SetupRouter(appCtx *app.AppContext) (router *gin.Engine, gApi *gin.RouterGroup) + func SetupRouterWith(appCtx *app.AppContext, opts *app.Options) *gin.Engine + func ValidationEmail(fl validator.FieldLevel) bool + func ValidationNotAllFieldsZero(sl validator.StructLevel) + type ClientError struct + Code string + Message string + func (e *ClientError) Error() string + type Context struct + func (c *Context) AbortWithClientError(err error) + func (c *Context) AbortWithForbidden(err error) + func (c *Context) AbortWithServerError(err error) + func (c *Context) AbortWithUnauthorized(err error) + func (c *Context) AppContext() *app.AppContext + func (c *Context) Empty() + func (c *Context) Localizer() *libI18n.Localizer + func (c *Context) Response(res any) + func (c *Context) Translate(messageID string) string + type HandlerFunc func(*Context) + type PagingRequest struct + Limit int + Offset int + type PagingResponse struct + Items []T + Limit int + Offset int + Total int + type Response struct + CreatedAt *time.Time + Id int + UpdatedAt *time.Time