Versions in this module Expand all Collapse all v1 v1.0.0 Feb 8, 2024 Changes in this version + const RouteBinding + var App foundation.Application + var ConfigFacade config.Config + var LogFacade log.Log + var ValidationFacade validation.Validation + var ViewFacade http.View + func Background() http.Context + func Cors() http.Middleware + func NewContext(ctx *fiber.Ctx) http.Context + func NewContextRequest(ctx *Context, log log.Log, validation contractsvalidate.Validation) contractshttp.ContextRequest + func NewGroup(config config.Config, instance *fiber.App, prefix string, ...) route.Router + func NewStatus(instance *fiber.Ctx, code int) contractshttp.ResponseSuccess + func NewSuccess(instance *fiber.Ctx) contractshttp.ResponseSuccess + func ResponseMiddleware() contractshttp.Middleware + type Context struct + func (c *Context) Context() context.Context + func (c *Context) Deadline() (deadline time.Time, ok bool) + func (c *Context) Done() <-chan struct{} + func (c *Context) Err() error + func (c *Context) Instance() *fiber.Ctx + func (c *Context) Request() http.ContextRequest + func (c *Context) Response() http.ContextResponse + func (c *Context) Value(key any) any + func (c *Context) WithValue(key string, value any) + type ContextRequest struct + func (r *ContextRequest) AbortWithStatus(code int) + func (r *ContextRequest) AbortWithStatusJson(code int, jsonObj any) + func (r *ContextRequest) All() map[string]any + func (r *ContextRequest) Bind(obj any) error + func (r *ContextRequest) Cookie(key string, defaultValue ...string) string + func (r *ContextRequest) File(name string) (contractsfilesystem.File, error) + func (r *ContextRequest) Form(key string, defaultValue ...string) string + func (r *ContextRequest) FullUrl() string + func (r *ContextRequest) Header(key string, defaultValue ...string) string + func (r *ContextRequest) Headers() http.Header + func (r *ContextRequest) Host() string + func (r *ContextRequest) Input(key string, defaultValue ...string) string + func (r *ContextRequest) InputArray(key string, defaultValue ...[]string) []string + func (r *ContextRequest) InputBool(key string, defaultValue ...bool) bool + func (r *ContextRequest) InputInt(key string, defaultValue ...int) int + func (r *ContextRequest) InputInt64(key string, defaultValue ...int64) int64 + func (r *ContextRequest) InputMap(key string, defaultValue ...map[string]string) map[string]string + func (r *ContextRequest) Ip() string + func (r *ContextRequest) Json(key string, defaultValue ...string) string + func (r *ContextRequest) Method() string + func (r *ContextRequest) Next() + func (r *ContextRequest) Origin() *http.Request + func (r *ContextRequest) Path() string + func (r *ContextRequest) Queries() map[string]string + func (r *ContextRequest) Query(key string, defaultValue ...string) string + func (r *ContextRequest) QueryArray(key string) []string + func (r *ContextRequest) QueryBool(key string, defaultValue ...bool) bool + func (r *ContextRequest) QueryInt(key string, defaultValue ...int) int + func (r *ContextRequest) QueryInt64(key string, defaultValue ...int64) int64 + func (r *ContextRequest) QueryMap(key string) map[string]string + func (r *ContextRequest) Route(key string) string + func (r *ContextRequest) RouteInt(key string) int + func (r *ContextRequest) RouteInt64(key string) int64 + func (r *ContextRequest) Url() string + func (r *ContextRequest) Validate(rules map[string]string, options ...contractsvalidate.Option) (contractsvalidate.Validator, error) + func (r *ContextRequest) ValidateRequest(request contractshttp.FormRequest) (contractsvalidate.Errors, error) + type ContextResponse struct + func NewContextResponse(instance *fiber.Ctx, origin contractshttp.ResponseOrigin) *ContextResponse + func (r *ContextResponse) Cookie(cookie contractshttp.Cookie) contractshttp.ContextResponse + func (r *ContextResponse) Data(code int, contentType string, data []byte) contractshttp.Response + func (r *ContextResponse) Download(filepath, filename string) contractshttp.Response + func (r *ContextResponse) File(filepath string) contractshttp.Response + func (r *ContextResponse) Flush() + func (r *ContextResponse) Header(key, value string) contractshttp.ContextResponse + func (r *ContextResponse) Json(code int, obj any) contractshttp.Response + func (r *ContextResponse) Origin() contractshttp.ResponseOrigin + func (r *ContextResponse) Redirect(code int, location string) contractshttp.Response + func (r *ContextResponse) Status(code int) contractshttp.ResponseStatus + func (r *ContextResponse) String(code int, format string, values ...any) contractshttp.Response + func (r *ContextResponse) Success() contractshttp.ResponseSuccess + func (r *ContextResponse) View() contractshttp.ResponseView + func (r *ContextResponse) WithoutCookie(name string) contractshttp.ContextResponse + func (r *ContextResponse) Writer() http.ResponseWriter + type DataResponse struct + func (r *DataResponse) Render() error + type DownloadResponse struct + func (r *DownloadResponse) Render() error + type FileResponse struct + func (r *FileResponse) Render() error + type Group struct + func (r *Group) Any(relativePath string, handler httpcontract.HandlerFunc) + func (r *Group) Delete(relativePath string, handler httpcontract.HandlerFunc) + func (r *Group) Get(relativePath string, handler httpcontract.HandlerFunc) + func (r *Group) Group(handler route.GroupFunc) + func (r *Group) Middleware(middlewares ...httpcontract.Middleware) route.Router + func (r *Group) Options(relativePath string, handler httpcontract.HandlerFunc) + func (r *Group) Patch(relativePath string, handler httpcontract.HandlerFunc) + func (r *Group) Post(relativePath string, handler httpcontract.HandlerFunc) + func (r *Group) Prefix(addr string) route.Router + func (r *Group) Put(relativePath string, handler httpcontract.HandlerFunc) + func (r *Group) Resource(relativePath string, controller httpcontract.ResourceController) + func (r *Group) Static(relativePath, root string) + func (r *Group) StaticFS(relativePath string, fs http.FileSystem) + func (r *Group) StaticFile(relativePath, filePath string) + type HtmlResponse struct + func (r *HtmlResponse) Render() error + type JsonResponse struct + func (r *JsonResponse) Render() error + type RedirectResponse struct + func (r *RedirectResponse) Render() error + type ResponseOrigin struct + func (w *ResponseOrigin) Body() *bytes.Buffer + func (w *ResponseOrigin) Header() http.Header + func (w *ResponseOrigin) Size() int + func (w *ResponseOrigin) Status() int + type Route struct + func NewRoute(config config.Config, parameters map[string]any) (*Route, error) + func (r *Route) Fallback(handler httpcontract.HandlerFunc) + func (r *Route) GlobalMiddleware(middlewares ...httpcontract.Middleware) + func (r *Route) Run(host ...string) error + func (r *Route) RunTLS(host ...string) error + func (r *Route) RunTLSWithCert(host, certFile, keyFile string) error + func (r *Route) ServeHTTP(writer http.ResponseWriter, request *http.Request) + func (r *Route) Test(request *http.Request) (*http.Response, error) + type ServiceProvider struct + func (receiver *ServiceProvider) Boot(app foundation.Application) + func (receiver *ServiceProvider) Register(app foundation.Application) + type Status struct + func (r *Status) Data(contentType string, data []byte) contractshttp.Response + func (r *Status) Json(obj any) contractshttp.Response + func (r *Status) String(format string, values ...any) contractshttp.Response + type StringResponse struct + func (r *StringResponse) Render() error + type Success struct + func (r *Success) Data(contentType string, data []byte) contractshttp.Response + func (r *Success) Json(obj any) contractshttp.Response + func (r *Success) String(format string, values ...any) contractshttp.Response + type View struct + func NewView(instance *fiber.Ctx) *View + func (receive *View) First(views []string, data ...any) contractshttp.Response + func (receive *View) Make(view string, data ...any) contractshttp.Response + type WriterAdapter struct + func (w *WriterAdapter) Header() http.Header + func (w *WriterAdapter) Write(data []byte) (int, error) + func (w *WriterAdapter) WriteHeader(code int)