Versions in this module Expand all Collapse all v0 v0.0.1 Jul 24, 2024 Changes in this version + const ConstraintAlpha + const ConstraintBetweenLen + const ConstraintBetweenLenLower + const ConstraintBool + const ConstraintDatetime + const ConstraintFloat + const ConstraintGUID + const ConstraintInt + const ConstraintLen + const ConstraintMax + const ConstraintMaxLen + const ConstraintMaxLenLower + const ConstraintMin + const ConstraintMinLen + const ConstraintMinLenLower + const ConstraintRange + const ConstraintRegex + const CookieDataAssigner + const CookieDataSeparator + const CookieSameSiteDisabled + const CookieSameSiteLaxMode + const CookieSameSiteNoneMode + const CookieSameSiteStrictMode + const DefaultBodyLimit + const DefaultConcurrency + const DefaultReadBufferSize + const DefaultWriteBufferSize + const FlashCookieName + const HeaderAccept + const HeaderAcceptCH + const HeaderAcceptCHLifetime + const HeaderAcceptCharset + const HeaderAcceptEncoding + const HeaderAcceptLanguage + const HeaderAcceptPatch + const HeaderAcceptPushPolicy + const HeaderAcceptRanges + const HeaderAcceptSignature + const HeaderAccessControlAllowCredentials + const HeaderAccessControlAllowHeaders + const HeaderAccessControlAllowMethods + const HeaderAccessControlAllowOrigin + const HeaderAccessControlAllowPrivateNetwork + const HeaderAccessControlExposeHeaders + const HeaderAccessControlMaxAge + const HeaderAccessControlRequestHeaders + const HeaderAccessControlRequestMethod + const HeaderAccessControlRequestPrivateNetwork + const HeaderAge + const HeaderAllow + const HeaderAltSvc + const HeaderAuthorization + const HeaderCacheControl + const HeaderClearSiteData + const HeaderConnection + const HeaderContentDPR + const HeaderContentDisposition + const HeaderContentEncoding + const HeaderContentLanguage + const HeaderContentLength + const HeaderContentLocation + const HeaderContentRange + const HeaderContentSecurityPolicy + const HeaderContentSecurityPolicyReportOnly + const HeaderContentType + const HeaderCookie + const HeaderCrossOriginResourcePolicy + const HeaderDNT + const HeaderDPR + const HeaderDate + const HeaderETag + const HeaderEarlyData + const HeaderExpect + const HeaderExpectCT + const HeaderExpires + const HeaderForwarded + const HeaderFrom + const HeaderHost + const HeaderIfMatch + const HeaderIfModifiedSince + const HeaderIfNoneMatch + const HeaderIfRange + const HeaderIfUnmodifiedSince + const HeaderIndex + const HeaderKeepAlive + const HeaderLargeAllocation + const HeaderLastEventID + const HeaderLastModified + const HeaderLink + const HeaderLocation + const HeaderMaxForwards + const HeaderNEL + const HeaderOrigin + const HeaderPermissionsPolicy + const HeaderPingFrom + const HeaderPingTo + const HeaderPragma + const HeaderProxyAuthenticate + const HeaderProxyAuthorization + const HeaderPublicKeyPins + const HeaderPublicKeyPinsReportOnly + const HeaderPushPolicy + const HeaderRange + const HeaderReferer + const HeaderReferrerPolicy + const HeaderReportTo + const HeaderRetryAfter + const HeaderSaveData + const HeaderSecWebSocketAccept + const HeaderSecWebSocketExtensions + const HeaderSecWebSocketKey + const HeaderSecWebSocketProtocol + const HeaderSecWebSocketVersion + const HeaderServer + const HeaderServerTiming + const HeaderSetCookie + const HeaderSignature + const HeaderSignedHeaders + const HeaderSourceMap + const HeaderStrictTransportSecurity + const HeaderTE + const HeaderTimingAllowOrigin + const HeaderTk + const HeaderTrailer + const HeaderTransferEncoding + const HeaderUpgrade + const HeaderUpgradeInsecureRequests + const HeaderUserAgent + const HeaderVary + const HeaderVia + const HeaderViewportWidth + const HeaderWWWAuthenticate + const HeaderWarning + const HeaderWidth + const HeaderXContentTypeOptions + const HeaderXDNSPrefetchControl + const HeaderXDownloadOptions + const HeaderXForwardedFor + const HeaderXForwardedHost + const HeaderXForwardedProto + const HeaderXForwardedProtocol + const HeaderXForwardedSsl + const HeaderXFrameOptions + const HeaderXPermittedCrossDomainPolicies + const HeaderXPingback + const HeaderXPoweredBy + const HeaderXRequestID + const HeaderXRequestedWith + const HeaderXRobotsTag + const HeaderXUACompatible + const HeaderXUrlScheme + const HeaderXXSSProtection + const MIMEApplicationForm + const MIMEApplicationJSON + const MIMEApplicationJSONCharsetUTF8 + const MIMEApplicationJavaScript + const MIMEApplicationJavaScriptCharsetUTF8 + const MIMEApplicationXML + const MIMEApplicationXMLCharsetUTF8 + const MIMEMultipartForm + const MIMEOctetStream + const MIMETextCSS + const MIMETextCSSCharsetUTF8 + const MIMETextHTML + const MIMETextHTMLCharsetUTF8 + const MIMETextJavaScript + const MIMETextJavaScriptCharsetUTF8 + const MIMETextPlain + const MIMETextPlainCharsetUTF8 + const MIMETextXML + const MIMETextXMLCharsetUTF8 + const MethodConnect + const MethodDelete + const MethodGet + const MethodHead + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + const MethodTrace + const NetworkTCP + const NetworkTCP4 + const NetworkTCP6 + const OldInputDataPrefix + const StatusAccepted + const StatusAlreadyReported + const StatusBadGateway + const StatusBadRequest + const StatusConflict + const StatusContinue + const StatusCreated + const StatusEarlyHints + const StatusExpectationFailed + const StatusFailedDependency + const StatusForbidden + const StatusFound + const StatusGatewayTimeout + const StatusGone + const StatusHTTPVersionNotSupported + const StatusIMUsed + const StatusInsufficientStorage + const StatusInternalServerError + const StatusLengthRequired + const StatusLocked + const StatusLoopDetected + const StatusMethodNotAllowed + const StatusMisdirectedRequest + const StatusMovedPermanently + const StatusMultiStatus + const StatusMultipleChoices + const StatusNetworkAuthenticationRequired + const StatusNoContent + const StatusNonAuthoritativeInformation + const StatusNotAcceptable + const StatusNotExtended + const StatusNotFound + const StatusNotImplemented + const StatusNotModified + const StatusOK + const StatusPartialContent + const StatusPaymentRequired + const StatusPermanentRedirect + const StatusPreconditionFailed + const StatusPreconditionRequired + const StatusProcessing + const StatusProxyAuthRequired + const StatusRequestEntityTooLarge + const StatusRequestHeaderFieldsTooLarge + const StatusRequestTimeout + const StatusRequestURITooLong + const StatusRequestedRangeNotSatisfiable + const StatusResetContent + const StatusSeeOther + const StatusServiceUnavailable + const StatusSwitchProxy + const StatusSwitchingProtocols + const StatusTeapot + const StatusTemporaryRedirect + const StatusTooEarly + const StatusTooManyRequests + const StatusUnauthorized + const StatusUnavailableForLegalReasons + const StatusUnprocessableEntity + const StatusUnsupportedMediaType + const StatusUpgradeRequired + const StatusUseProxy + const StatusVariantAlsoNegotiates + const StrBr + const StrBrotli + const StrDeflate + const StrGzip + const StrZstd + const Version + var DefaultColors = Colors + var DefaultMethods = []string + var ErrBadGateway = NewError(StatusBadGateway) + var ErrBadRequest = NewError(StatusBadRequest) + var ErrConflict = NewError(StatusConflict) + var ErrCustomBinderNotFound = errors.New("binder: custom binder not found, please be sure to enter the right name") + var ErrExpectationFailed = NewError(StatusExpectationFailed) + var ErrFailedDependency = NewError(StatusFailedDependency) + var ErrForbidden = NewError(StatusForbidden) + var ErrGatewayTimeout = NewError(StatusGatewayTimeout) + var ErrGone = NewError(StatusGone) + var ErrGracefulTimeout = errors.New("shutdown: graceful timeout has been reached, exiting") + var ErrHTTPVersionNotSupported = NewError(StatusHTTPVersionNotSupported) + var ErrHandlerExited = errors.New("runtime.Goexit() called in handler or server panic") + var ErrInsufficientStorage = NewError(StatusInsufficientStorage) + var ErrInternalServerError = NewError(StatusInternalServerError) + var ErrLengthRequired = NewError(StatusLengthRequired) + var ErrLocked = NewError(StatusLocked) + var ErrLoopDetected = NewError(StatusLoopDetected) + var ErrMethodNotAllowed = NewError(StatusMethodNotAllowed) + var ErrMisdirectedRequest = NewError(StatusMisdirectedRequest) + var ErrNetworkAuthenticationRequired = NewError(StatusNetworkAuthenticationRequired) + var ErrNoHandlers = errors.New("format: at least one handler is required, but none were set") + var ErrNotAcceptable = NewError(StatusNotAcceptable) + var ErrNotExtended = NewError(StatusNotExtended) + var ErrNotFound = NewError(StatusNotFound) + var ErrNotImplemented = NewError(StatusNotImplemented) + var ErrNotRunning = errors.New("shutdown: server is not running") + var ErrPaymentRequired = NewError(StatusPaymentRequired) + var ErrPreconditionFailed = NewError(StatusPreconditionFailed) + var ErrPreconditionRequired = NewError(StatusPreconditionRequired) + var ErrProxyAuthRequired = NewError(StatusProxyAuthRequired) + var ErrRangeMalformed = errors.New("range: malformed range header string") + var ErrRangeUnsatisfiable = errors.New("range: unsatisfiable range") + var ErrRedirectBackNoFallback = NewError(StatusInternalServerError, ...) + var ErrRequestEntityTooLarge = NewError(StatusRequestEntityTooLarge) + var ErrRequestHeaderFieldsTooLarge = NewError(StatusRequestHeaderFieldsTooLarge) + var ErrRequestTimeout = NewError(StatusRequestTimeout) + var ErrRequestURITooLong = NewError(StatusRequestURITooLong) + var ErrRequestedRangeNotSatisfiable = NewError(StatusRequestedRangeNotSatisfiable) + var ErrServiceUnavailable = NewError(StatusServiceUnavailable) + var ErrTeapot = NewError(StatusTeapot) + var ErrTooEarly = NewError(StatusTooEarly) + var ErrTooManyRequests = NewError(StatusTooManyRequests) + var ErrUnauthorized = NewError(StatusUnauthorized) + var ErrUnavailableForLegalReasons = NewError(StatusUnavailableForLegalReasons) + var ErrUnprocessableEntity = NewError(StatusUnprocessableEntity) + var ErrUnsupportedMediaType = NewError(StatusUnsupportedMediaType) + var ErrUpgradeRequired = NewError(StatusUpgradeRequired) + var ErrVariantAlsoNegotiates = NewError(StatusVariantAlsoNegotiates) + func Convert[T any](value string, convertor func(string) (T, error), defaultValue ...T) (T, error) + func DefaultErrorHandler(c Ctx, err error) error + func GetReqHeader[V GenericType](c Ctx, key string, defaultValue ...V) V + func GetTrimmedParam(param string) string + func IndexRune(str string, needle int32) bool + func IsChild() bool + func IsMethodIdempotent(m string) bool + func IsMethodSafe(m string) bool + func Locals[V any](c Ctx, key any, value ...V) V + func Params[V GenericType](c Ctx, key string, defaultValue ...V) V + func Query[V GenericType](c Ctx, key string, defaultValue ...V) V + func ReleaseRedirect(r *Redirect) + func RemoveEscapeChar(word string) string + func RoutePatternMatch(path, pattern string, cfg ...Config) bool + type App struct + func New(config ...Config) *App + func (app *App) AcquireCtx(fctx *fasthttp.RequestCtx) Ctx + func (app *App) Add(methods []string, path string, handler Handler, middleware ...Handler) Router + func (app *App) All(path string, handler Handler, middleware ...Handler) Router + func (app *App) Config() Config + func (app *App) Connect(path string, handler Handler, middleware ...Handler) Router + func (app *App) Delete(path string, handler Handler, middleware ...Handler) Router + func (app *App) ErrorHandler(ctx Ctx, err error) error + func (app *App) Get(path string, handler Handler, middleware ...Handler) Router + func (app *App) GetRoute(name string) Route + func (app *App) GetRoutes(filterUseOption ...bool) []Route + func (app *App) Group(prefix string, handlers ...Handler) Router + func (app *App) Handler() fasthttp.RequestHandler + func (app *App) HandlersCount() uint32 + func (app *App) Head(path string, handler Handler, middleware ...Handler) Router + func (app *App) Hooks() *Hooks + func (app *App) Listen(addr string, config ...ListenConfig) error + func (app *App) Listener(ln net.Listener, config ...ListenConfig) error + func (app *App) MountPath() string + func (app *App) Name(name string) Router + func (app *App) NewCtxFunc(function func(app *App) CustomCtx) + func (app *App) Options(path string, handler Handler, middleware ...Handler) Router + func (app *App) Patch(path string, handler Handler, middleware ...Handler) Router + func (app *App) Post(path string, handler Handler, middleware ...Handler) Router + func (app *App) Put(path string, handler Handler, middleware ...Handler) Router + func (app *App) RebuildTree() *App + func (app *App) RegisterCustomBinder(binder CustomBinder) + func (app *App) RegisterCustomConstraint(constraint CustomConstraint) + func (app *App) ReleaseCtx(c Ctx) + func (app *App) Route(path string) Register + func (app *App) Server() *fasthttp.Server + func (app *App) SetTLSHandler(tlsHandler *TLSHandler) + func (app *App) Shutdown() error + func (app *App) ShutdownWithContext(ctx context.Context) error + func (app *App) ShutdownWithTimeout(timeout time.Duration) error + func (app *App) Stack() [][]*Route + func (app *App) Test(req *http.Request, timeout ...time.Duration) (*http.Response, error) + func (app *App) Trace(path string, handler Handler, middleware ...Handler) Router + func (app *App) Use(args ...any) Router + type Bind struct + func (b *Bind) Body(out any) error + func (b *Bind) Cookie(out any) error + func (b *Bind) Custom(name string, dest any) error + func (b *Bind) Form(out any) error + func (b *Bind) Header(out any) error + func (b *Bind) JSON(out any) error + func (b *Bind) MultipartForm(out any) error + func (b *Bind) Must() *Bind + func (b *Bind) Query(out any) error + func (b *Bind) RespHeader(out any) error + func (b *Bind) Should() *Bind + func (b *Bind) URI(out any) error + func (b *Bind) XML(out any) error + type Colors struct + Black string + Blue string + Cyan string + Green string + Magenta string + Red string + Reset string + White string + Yellow string + type Config struct + AppName string + BodyLimit int + CaseSensitive bool + ColorScheme Colors + CompressedFileSuffixes map[string]string + Concurrency int + DisableDefaultContentType bool + DisableDefaultDate bool + DisableHeaderNormalizing bool + DisableKeepalive bool + DisablePreParseMultipartForm bool + EnableIPValidation bool + EnableSplittingOnParsers bool + EnableTrustedProxyCheck bool + ErrorHandler ErrorHandler + GETOnly bool + IdleTimeout time.Duration + Immutable bool + JSONDecoder utils.JSONUnmarshal + JSONEncoder utils.JSONMarshal + PassLocalsToViews bool + ProxyHeader string + ReadBufferSize int + ReadTimeout time.Duration + ReduceMemoryUsage bool + RequestMethods []string + ServerHeader string + StreamRequestBody bool + StrictRouting bool + StructValidator StructValidator + TrustedProxies []string + UnescapePath bool + Views Views + ViewsLayout string + WriteBufferSize int + WriteTimeout time.Duration + XMLEncoder utils.XMLMarshal + type Constraint struct + Data []string + ID TypeConstraint + Name string + RegexCompiler *regexp.Regexp + func (c *Constraint) CheckConstraint(param string) bool + type ConversionError = schema.ConversionError + type Cookie struct + Domain string + Expires time.Time + HTTPOnly bool + MaxAge int + Name string + Partitioned bool + Path string + SameSite string + Secure bool + SessionOnly bool + Value string + type Ctx interface + Accepts func(offers ...string) string + AcceptsCharsets func(offers ...string) string + AcceptsEncodings func(offers ...string) string + AcceptsLanguages func(offers ...string) string + App func() *App + Append func(field string, values ...string) + Attachment func(filename ...string) + AutoFormat func(body any) error + BaseURL func() string + Bind func() *Bind + Body func() []byte + BodyRaw func() []byte + ClearCookie func(key ...string) + ClientHelloInfo func() *tls.ClientHelloInfo + Context func() *fasthttp.RequestCtx + Cookie func(cookie *Cookie) + Cookies func(key string, defaultValue ...string) string + Download func(file string, filename ...string) error + FormFile func(key string) (*multipart.FileHeader, error) + FormValue func(key string, defaultValue ...string) string + Format func(handlers ...ResFmt) error + Fresh func() bool + Get func(key string, defaultValue ...string) string + GetReqHeaders func() map[string][]string + GetRespHeader func(key string, defaultValue ...string) string + GetRespHeaders func() map[string][]string + GetRouteURL func(routeName string, params Map) (string, error) + Host func() string + Hostname func() string + IP func() string + IPs func() []string + Is func(extension string) bool + IsFromLocal func() bool + IsProxyTrusted func() bool + JSON func(data any, ctype ...string) error + JSONP func(data any, callback ...string) error + Links func(link ...string) + Locals func(key any, value ...any) any + Location func(path string) + Method func(override ...string) string + MultipartForm func() (*multipart.Form, error) + Next func() error + OriginalURL func() string + Params func(key string, defaultValue ...string) string + Path func(override ...string) string + Port func() string + Protocol func() string + Queries func() map[string]string + Query func(key string, defaultValue ...string) string + Range func(size int) (Range, error) + Redirect func() *Redirect + Render func(name string, bind Map, layouts ...string) error + Request func() *fasthttp.Request + Reset func(fctx *fasthttp.RequestCtx) + Response func() *fasthttp.Response + RestartRouting func() error + Route func() *Route + SaveFile func(fileheader *multipart.FileHeader, path string) error + SaveFileToStorage func(fileheader *multipart.FileHeader, path string, storage Storage) error + Scheme func() string + Secure func() bool + Send func(body []byte) error + SendFile func(file string, config ...SendFile) error + SendStatus func(status int) error + SendStream func(stream io.Reader, size ...int) error + SendString func(body string) error + Set func(key, val string) + SetUserContext func(ctx context.Context) + Stale func() bool + Status func(status int) Ctx + String func() string + Subdomains func(offset ...int) []string + Type func(extension string, charset ...string) Ctx + UserContext func() context.Context + Vary func(fields ...string) + ViewBind func(vars Map) error + Write func(p []byte) (int, error) + WriteString func(s string) (int, error) + Writef func(f string, a ...any) (int, error) + XHR func() bool + XML func(data any) error + type CustomBinder interface + MIMETypes func() []string + Name func() string + Parse func(c Ctx, out any) error + type CustomConstraint interface + Execute func(param string, args ...string) bool + Name func() string + type CustomCtx interface + Reset func(fctx *fasthttp.RequestCtx) + type DefaultCtx struct + func NewDefaultCtx(app *App) *DefaultCtx + func (*DefaultCtx) SaveFile(fileheader *multipart.FileHeader, path string) error + func (*DefaultCtx) SaveFileToStorage(fileheader *multipart.FileHeader, path string, storage Storage) error + func (c *DefaultCtx) Accepts(offers ...string) string + func (c *DefaultCtx) AcceptsCharsets(offers ...string) string + func (c *DefaultCtx) AcceptsEncodings(offers ...string) string + func (c *DefaultCtx) AcceptsLanguages(offers ...string) string + func (c *DefaultCtx) App() *App + func (c *DefaultCtx) Append(field string, values ...string) + func (c *DefaultCtx) Attachment(filename ...string) + func (c *DefaultCtx) AutoFormat(body any) error + func (c *DefaultCtx) BaseURL() string + func (c *DefaultCtx) Bind() *Bind + func (c *DefaultCtx) Body() []byte + func (c *DefaultCtx) BodyRaw() []byte + func (c *DefaultCtx) ClearCookie(key ...string) + func (c *DefaultCtx) ClientHelloInfo() *tls.ClientHelloInfo + func (c *DefaultCtx) Context() *fasthttp.RequestCtx + func (c *DefaultCtx) Cookie(cookie *Cookie) + func (c *DefaultCtx) Cookies(key string, defaultValue ...string) string + func (c *DefaultCtx) Download(file string, filename ...string) error + func (c *DefaultCtx) FormFile(key string) (*multipart.FileHeader, error) + func (c *DefaultCtx) FormValue(key string, defaultValue ...string) string + func (c *DefaultCtx) Format(handlers ...ResFmt) error + func (c *DefaultCtx) Fresh() bool + func (c *DefaultCtx) Get(key string, defaultValue ...string) string + func (c *DefaultCtx) GetReqHeaders() map[string][]string + func (c *DefaultCtx) GetRespHeader(key string, defaultValue ...string) string + func (c *DefaultCtx) GetRespHeaders() map[string][]string + func (c *DefaultCtx) GetRouteURL(routeName string, params Map) (string, error) + func (c *DefaultCtx) Host() string + func (c *DefaultCtx) Hostname() string + func (c *DefaultCtx) IP() string + func (c *DefaultCtx) IPs() []string + func (c *DefaultCtx) Is(extension string) bool + func (c *DefaultCtx) IsFromLocal() bool + func (c *DefaultCtx) IsProxyTrusted() bool + func (c *DefaultCtx) JSON(data any, ctype ...string) error + func (c *DefaultCtx) JSONP(data any, callback ...string) error + func (c *DefaultCtx) Links(link ...string) + func (c *DefaultCtx) Locals(key any, value ...any) any + func (c *DefaultCtx) Location(path string) + func (c *DefaultCtx) Method(override ...string) string + func (c *DefaultCtx) MultipartForm() (*multipart.Form, error) + func (c *DefaultCtx) Next() error + func (c *DefaultCtx) OriginalURL() string + func (c *DefaultCtx) Params(key string, defaultValue ...string) string + func (c *DefaultCtx) Path(override ...string) string + func (c *DefaultCtx) Port() string + func (c *DefaultCtx) Protocol() string + func (c *DefaultCtx) Queries() map[string]string + func (c *DefaultCtx) Query(key string, defaultValue ...string) string + func (c *DefaultCtx) Range(size int) (Range, error) + func (c *DefaultCtx) Redirect() *Redirect + func (c *DefaultCtx) Render(name string, bind Map, layouts ...string) error + func (c *DefaultCtx) Request() *fasthttp.Request + func (c *DefaultCtx) Reset(fctx *fasthttp.RequestCtx) + func (c *DefaultCtx) Response() *fasthttp.Response + func (c *DefaultCtx) RestartRouting() error + func (c *DefaultCtx) Route() *Route + func (c *DefaultCtx) Scheme() string + func (c *DefaultCtx) Secure() bool + func (c *DefaultCtx) Send(body []byte) error + func (c *DefaultCtx) SendFile(file string, config ...SendFile) error + func (c *DefaultCtx) SendStatus(status int) error + func (c *DefaultCtx) SendStream(stream io.Reader, size ...int) error + func (c *DefaultCtx) SendString(body string) error + func (c *DefaultCtx) Set(key, val string) + func (c *DefaultCtx) SetUserContext(ctx context.Context) + func (c *DefaultCtx) Stale() bool + func (c *DefaultCtx) Status(status int) Ctx + func (c *DefaultCtx) String() string + func (c *DefaultCtx) Subdomains(offset ...int) []string + func (c *DefaultCtx) Type(extension string, charset ...string) Ctx + func (c *DefaultCtx) UserContext() context.Context + func (c *DefaultCtx) Vary(fields ...string) + func (c *DefaultCtx) ViewBind(vars Map) error + func (c *DefaultCtx) Write(p []byte) (int, error) + func (c *DefaultCtx) WriteString(s string) (int, error) + func (c *DefaultCtx) Writef(f string, a ...any) (int, error) + func (c *DefaultCtx) XHR() bool + func (c *DefaultCtx) XML(data any) error + type EmptyFieldError = schema.EmptyFieldError + type Error struct + Code int + Message string + func NewError(code int, message ...string) *Error + func (e *Error) Error() string + type ErrorHandler = func(Ctx, error) error + type GenericType interface + type GenericTypeFloat interface + type GenericTypeInteger interface + type GenericTypeIntegerSigned interface + type GenericTypeIntegerUnsigned interface + type Group struct + Prefix string + func (grp *Group) Add(methods []string, path string, handler Handler, middleware ...Handler) Router + func (grp *Group) All(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Connect(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Delete(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Get(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Group(prefix string, handlers ...Handler) Router + func (grp *Group) Head(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Name(name string) Router + func (grp *Group) Options(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Patch(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Post(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Put(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Route(path string) Register + func (grp *Group) Trace(path string, handler Handler, middleware ...Handler) Router + func (grp *Group) Use(args ...any) Router + type Handler = func(Ctx) error + type Hooks struct + func (h *Hooks) OnFork(handler ...OnForkHandler) + func (h *Hooks) OnGroup(handler ...OnGroupHandler) + func (h *Hooks) OnGroupName(handler ...OnGroupNameHandler) + func (h *Hooks) OnListen(handler ...OnListenHandler) + func (h *Hooks) OnMount(handler ...OnMountHandler) + func (h *Hooks) OnName(handler ...OnNameHandler) + func (h *Hooks) OnRoute(handler ...OnRouteHandler) + func (h *Hooks) OnShutdown(handler ...OnShutdownHandler) + type InvalidUnmarshalError = json.InvalidUnmarshalError + type ListenConfig struct + BeforeServeFunc func(app *App) error + CertClientFile string + CertFile string + CertKeyFile string + DisableStartupMessage bool + EnablePrefork bool + EnablePrintRoutes bool + GracefulContext context.Context + ListenerAddrFunc func(addr net.Addr) + ListenerNetwork string + OnShutdownError func(err error) + OnShutdownSuccess func() + TLSConfigFunc func(tlsConfig *tls.Config) + type ListenData struct + Host string + Port string + TLS bool + type Map map[string]any + type MarshalerError = json.MarshalerError + type MultiError = schema.MultiError + type OnForkHandler = func(int) error + type OnGroupHandler = func(Group) error + type OnGroupNameHandler = OnGroupHandler + type OnListenHandler = func(ListenData) error + type OnMountHandler = func(*App) error + type OnNameHandler = OnRouteHandler + type OnRouteHandler = func(Route) error + type OnShutdownHandler = func() error + type Range struct + Ranges []RangeSet + Type string + type RangeSet struct + End int + Start int + type Redirect struct + func AcquireRedirect() *Redirect + func (r *Redirect) Back(fallback ...string) error + func (r *Redirect) Message(key string) string + func (r *Redirect) Messages() map[string]string + func (r *Redirect) OldInput(key string) string + func (r *Redirect) OldInputs() map[string]string + func (r *Redirect) Route(name string, config ...RedirectConfig) error + func (r *Redirect) Status(code int) *Redirect + func (r *Redirect) To(location string) error + func (r *Redirect) With(key, value string) *Redirect + func (r *Redirect) WithInput() *Redirect + type RedirectConfig struct + Params Map + Queries map[string]string + type Register interface + Add func(methods []string, handler Handler, middleware ...Handler) Register + All func(handler Handler, middleware ...Handler) Register + Connect func(handler Handler, middleware ...Handler) Register + Delete func(handler Handler, middleware ...Handler) Register + Get func(handler Handler, middleware ...Handler) Register + Head func(handler Handler, middleware ...Handler) Register + Options func(handler Handler, middleware ...Handler) Register + Patch func(handler Handler, middleware ...Handler) Register + Post func(handler Handler, middleware ...Handler) Register + Put func(handler Handler, middleware ...Handler) Register + Route func(path string) Register + Trace func(handler Handler, middleware ...Handler) Register + type Registering struct + func (r *Registering) Add(methods []string, handler Handler, middleware ...Handler) Register + func (r *Registering) All(handler Handler, middleware ...Handler) Register + func (r *Registering) Connect(handler Handler, middleware ...Handler) Register + func (r *Registering) Delete(handler Handler, middleware ...Handler) Register + func (r *Registering) Get(handler Handler, middleware ...Handler) Register + func (r *Registering) Head(handler Handler, middleware ...Handler) Register + func (r *Registering) Options(handler Handler, middleware ...Handler) Register + func (r *Registering) Patch(handler Handler, middleware ...Handler) Register + func (r *Registering) Post(handler Handler, middleware ...Handler) Register + func (r *Registering) Put(handler Handler, middleware ...Handler) Register + func (r *Registering) Route(path string) Register + func (r *Registering) Trace(handler Handler, middleware ...Handler) Register + type ResFmt struct + Handler func(Ctx) error + MediaType string + type Route struct + Handlers []Handler + Method string + Name string + Params []string + Path string + type RouteMessage struct + type Router interface + Add func(methods []string, path string, handler Handler, middleware ...Handler) Router + All func(path string, handler Handler, middleware ...Handler) Router + Connect func(path string, handler Handler, middleware ...Handler) Router + Delete func(path string, handler Handler, middleware ...Handler) Router + Get func(path string, handler Handler, middleware ...Handler) Router + Group func(prefix string, handlers ...Handler) Router + Head func(path string, handler Handler, middleware ...Handler) Router + Name func(name string) Router + Options func(path string, handler Handler, middleware ...Handler) Router + Patch func(path string, handler Handler, middleware ...Handler) Router + Post func(path string, handler Handler, middleware ...Handler) Router + Put func(path string, handler Handler, middleware ...Handler) Router + Route func(path string) Register + Trace func(path string, handler Handler, middleware ...Handler) Router + Use func(args ...any) Router + type SendFile struct + ByteRange bool + CacheDuration time.Duration + Compress bool + Download bool + FS fs.FS + MaxAge int + type Storage interface + Close func() error + Delete func(key string) error + Get func(key string) ([]byte, error) + Reset func() error + Set func(key string, val []byte, exp time.Duration) error + type StructValidator interface + Validate func(out any) error + type SyntaxError = json.SyntaxError + type TLSHandler struct + func (t *TLSHandler) GetClientInfo(info *tls.ClientHelloInfo) (*tls.Certificate, error) + type TypeConstraint int16 + type UnknownKeyError = schema.UnknownKeyError + type UnmarshalTypeError = json.UnmarshalTypeError + type UnsupportedTypeError = json.UnsupportedTypeError + type UnsupportedValueError = json.UnsupportedValueError + type Views interface + Load func() error + Render func(out io.Writer, name string, binding any, layout ...string) error