Versions in this module Expand all Collapse all v1 v1.0.0 Jun 22, 2023 Changes in this version + const Binding + var CacheFacade cache.Cache + var ConfigFacade config.Config + var LogFacade log.Log + var RateLimiterFacade http.RateLimiter + var ValidationFacade validation.Validation + func Background() http.Context + func GinResponseMiddleware() httpcontract.Middleware + func NewGinContext(ctx *gin.Context) http.Context + func NewGinRequest(ctx *GinContext, log log.Log, validation validatecontract.Validation) httpcontract.Request + func NewGinSuccess(instance *gin.Context) httpcontract.ResponseSuccess + type BodyWriter struct + func (w *BodyWriter) Body() *bytes.Buffer + func (w *BodyWriter) Write(b []byte) (int, error) + func (w *BodyWriter) WriteString(s string) (int, error) + type GinContext struct + func (c *GinContext) Context() context.Context + func (c *GinContext) Deadline() (deadline time.Time, ok bool) + func (c *GinContext) Done() <-chan struct{} + func (c *GinContext) Err() error + func (c *GinContext) Instance() *gin.Context + func (c *GinContext) Request() http.Request + func (c *GinContext) Response() http.Response + func (c *GinContext) Value(key any) any + func (c *GinContext) WithValue(key string, value any) + type GinRequest struct + func (r *GinRequest) AbortWithStatus(code int) + func (r *GinRequest) AbortWithStatusJson(code int, jsonObj any) + func (r *GinRequest) All() map[string]any + func (r *GinRequest) Bind(obj any) error + func (r *GinRequest) File(name string) (filesystemcontract.File, error) + func (r *GinRequest) Form(key string, defaultValue ...string) string + func (r *GinRequest) FullUrl() string + func (r *GinRequest) Header(key string, defaultValue ...string) string + func (r *GinRequest) Headers() http.Header + func (r *GinRequest) Host() string + func (r *GinRequest) Input(key string, defaultValue ...string) string + func (r *GinRequest) InputBool(key string, defaultValue ...bool) bool + func (r *GinRequest) InputInt(key string, defaultValue ...int) int + func (r *GinRequest) InputInt64(key string, defaultValue ...int64) int64 + func (r *GinRequest) Ip() string + func (r *GinRequest) Json(key string, defaultValue ...string) string + func (r *GinRequest) Method() string + func (r *GinRequest) Next() + func (r *GinRequest) Origin() *http.Request + func (r *GinRequest) Path() string + func (r *GinRequest) Queries() map[string]string + func (r *GinRequest) Query(key string, defaultValue ...string) string + func (r *GinRequest) QueryArray(key string) []string + func (r *GinRequest) QueryBool(key string, defaultValue ...bool) bool + func (r *GinRequest) QueryInt(key string, defaultValue ...int) int + func (r *GinRequest) QueryInt64(key string, defaultValue ...int64) int64 + func (r *GinRequest) QueryMap(key string) map[string]string + func (r *GinRequest) Route(key string) string + func (r *GinRequest) RouteInt(key string) int + func (r *GinRequest) RouteInt64(key string) int64 + func (r *GinRequest) Url() string + func (r *GinRequest) Validate(rules map[string]string, options ...validatecontract.Option) (validatecontract.Validator, error) + func (r *GinRequest) ValidateRequest(request httpcontract.FormRequest) (validatecontract.Errors, error) + type GinResponse struct + func NewGinResponse(instance *gin.Context, origin httpcontract.ResponseOrigin) *GinResponse + func (r *GinResponse) Data(code int, contentType string, data []byte) + func (r *GinResponse) Download(filepath, filename string) + func (r *GinResponse) File(filepath string) + func (r *GinResponse) Header(key, value string) httpcontract.Response + func (r *GinResponse) Json(code int, obj any) + func (r *GinResponse) Origin() httpcontract.ResponseOrigin + func (r *GinResponse) Redirect(code int, location string) + func (r *GinResponse) String(code int, format string, values ...any) + func (r *GinResponse) Success() httpcontract.ResponseSuccess + func (r *GinResponse) Writer() http.ResponseWriter + type GinSuccess struct + func (r *GinSuccess) Data(contentType string, data []byte) + func (r *GinSuccess) Json(obj any) + func (r *GinSuccess) String(format string, values ...any) + type RateLimiter struct + func NewRateLimiter() *RateLimiter + func (r *RateLimiter) For(name string, callback func(ctx http.Context) http.Limit) + func (r *RateLimiter) ForWithLimits(name string, callback func(ctx http.Context) []http.Limit) + func (r *RateLimiter) Limiter(name string) func(ctx http.Context) []http.Limit + type ServiceProvider struct + func (database *ServiceProvider) Boot(app foundation.Application) + func (database *ServiceProvider) Register(app foundation.Application)