Versions in this module Expand all Collapse all v12 v12.3.1 Feb 23, 2023 v12.3.0 Feb 22, 2023 v12.2.2 Feb 22, 2023 v12.2.1 Feb 22, 2023 v12.2.0 Feb 22, 2023 Changes in this version + const AcceptEncodingHeaderKey + const BROTLI + const CSRFTokenFormKey + const CacheControlHeaderKey + const ContentBinaryHeaderValue + const ContentDispositionHeaderKey + const ContentEncodingHeaderKey + const ContentFormHeaderValue + const ContentFormMultipartHeaderValue + const ContentGRPCHeaderValue + const ContentHTMLHeaderValue + const ContentJSONHeaderValue + const ContentJSONProblemHeaderValue + const ContentJavascriptHeaderValue + const ContentLengthHeaderKey + const ContentMarkdownHeaderValue + const ContentMsgPack2HeaderValue + const ContentMsgPackHeaderValue + const ContentMultipartRelatedHeaderValue + const ContentProtobufHeaderValue + const ContentTextHeaderValue + const ContentTypeHeaderKey + const ContentWebassemblyHeaderValue + const ContentXMLHeaderValue + const ContentXMLProblemHeaderValue + const ContentXMLUnreadableHeaderValue + const ContentYAMLHeaderValue + const ContentYAMLTextHeaderValue + const ControllerContextKey + const DEFLATE + const DependenciesContextKey + const ETagHeaderKey + const GZIP + const GzipHeaderValue + const IDENTITY + const IfModifiedSinceHeaderKey + const LastModifiedHeaderKey + const NoWritten + const OpCookieDel + const OpCookieGet + const OpCookieSet + const ReferrerDirect + const ReferrerEmail + const ReferrerGoogleAdwords + const ReferrerGoogleOrganicSearch + const ReferrerIndirect + const ReferrerInvalid + const ReferrerNotGoogleSearch + const ReferrerSearch + const ReferrerSocial + const S2 + const SNAPPY + const StatusBandwidthLimitExceeded + const StatusBlockedByWindowsParentalControls + const StatusCodeWritten + const StatusInvalidSSLCertificate + const StatusInvalidToken + const StatusNetworkReadTimeout + const StatusPageExpired + const StatusSiteFrozen + const StatusSiteOverloaded + const StatusTokenRequired + const VaryHeaderKey + var AllEncodings = []string + var BuildRevision string + var BuildTime string + var ClientAndServerErrorCodes = append(ClientErrorCodes, ServerErrorCodes) + var ClientErrorCodes = []int + var ConnectionCloseErrorSubstr = []string + var CookieExpireDelete = time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC) + var CookieExpireUnlimited = time.Now().AddDate(24, 10, 10) + var Counter = NewGlobalCounter() + var DefaultJSONOptions = JSON + var DefaultJSONPOptions = JSONP + var DefaultMarkdownOptions = Markdown + var DefaultProblemOptions = ProblemOptions + var DefaultProblemStatusCode = http.StatusBadRequest + var DefaultXMLOptions = XML + var ErrContentNotSupported = errors.New("unsupported content") + var ErrEmptyForm = errors.New("empty form") + var ErrEmptyFormField = errors.New("empty form field") + var ErrHijackNotSupported = errors.New("hijack is not supported by this ResponseWriter") + var ErrInvalidArgs = errors.New("invalid arguments") + var ErrNotFound = errors.New("not found") + var ErrNotSupported = errors.New("not supported") + var ErrNotSupportedCompression = errors.New("compress: unsupported compression") + var ErrPreconditionFailed = errors.New("precondition failed") + var ErrPushNotSupported = errors.New("push feature is not supported by this ResponseWriter") + var ErrRequestNotCompressed = errors.New("compress: request is not compressed") + var ErrResponseNotCompressed = errors.New("compress: response will not be compressed") + var FormatTime = func(ctx *Context, t time.Time) string + var GetDomain = func(hostport string) string + var IsErrConnectionClosed = func(err error) bool + var IsErrEmptyJSON = func(err error) bool + var IsErrPath = schema.IsErrPath + var IsErrPathCRSFToken = func(err error) bool + var LimitRequestBodySize = func(maxRequestBodySizeBytes int64) Handler + var PackageName = strings.TrimSuffix(reflect.TypeOf(Handlers{}).PkgPath(), "/context") + var ParamResolvers = map[reflect.Type]func(paramIndex int) interface + var ParseTime = func(ctx *Context, text string) (t time.Time, err error) + var ReadJSON = func(ctx *Context, outPtr interface{}, opts ...JSONReader) error + var Recorder = func(ctx *Context) + var ResolveFS = func(fsOrDir interface{}) fs.FS + var ResolveHTTPFS = func(fsOrDir interface{}) http.FileSystem + var ServerErrorCodes = []int + var SetCookieKVExpiration = 8760 * time.Hour + var StatusCodeNotSuccessful = func(statusCode int) bool + var WorkingDir = os.Getwd() + var WriteJSON = func(ctx *Context, v interface{}, options *JSON) error + var WriteJSONP = func(ctx *Context, v interface{}, options *JSONP) (err error) + var WriteMarkdown = func(ctx *Context, markdownB []byte, options *Markdown) error + var WriteXML = func(ctx *Context, v interface{}, options *XML) error + var WriteYAML = func(ctx *Context, v interface{}, indentSpace int) error + func AddCompressHeaders(h http.Header, encoding string) + func CookieCleanPath(_ *Context, c *http.Cookie, op uint8) + func CookieIncluded(cookie *http.Cookie, cookieNames []string) bool + func CookieSecure(ctx *Context, c *http.Cookie, op uint8) + func DecodeQuery(path string) string + func DecodeURL(uri string) string + func DefaultLogger(prefix string) (logger *golog.Logger) + func FindNames(fileSystem http.FileSystem, name string) ([]string, error) + func FormValueDefault(r *http.Request, name string, def string, postMaxMemory int64, resetBody bool) string + func GetBody(r *http.Request, resetBody bool) ([]byte, func(), error) + func GetEncoding(r *http.Request, offers []string) (string, error) + func GetForm(r *http.Request, postMaxMemory int64, resetBody bool) (form map[string][]string, found bool) + func GetHost(r *http.Request) string + func GetScheme(r *http.Request) string + func GetSubdomainFull(r *http.Request) string + func HandlerFileLine(h interface{}) (file string, line int) + func HandlerFileLineRel(h interface{}) (file string, line int) + func HandlerName(h interface{}) string + func HandlersNames(handlers ...interface{}) string + func IgnoreHandlerName(name string) bool + func IsErrCanceled(err error) bool + func IsNoOpFS(fileSystem fs.FS) bool + func IsZeroTime(t time.Time) bool + func MainHandlerName(handlers ...interface{}) (name string, index int) + func MakeDisposition(filename string) string + func OnApplicationRegistered(listeners ...func(app Application)) + func ParamResolverByTypeAndIndex(typ reflect.Type, paramIndex int) (reflect.Value, bool) + func RegisterApplication(app Application) + func SetHandlerName(original string, replacement string) + func StatusText(code int) string + func TrimHeaderValue(v string) string + func TrimParamFilePart(ctx *Context) + func XMLMap(elementName string, v Map) xml.Marshaler + type Application interface + ConfigurationReadOnly func() ConfigurationReadOnly + FindClosestPaths func(subdomain, searchPath string, n int) []string + FireErrorCode func(ctx *Context) + GetContextErrorHandler func() ErrorHandler + GetContextPool func() *Pool + GetRouteReadOnly func(routeName string) RouteReadOnly + GetRoutesReadOnly func() []RouteReadOnly + I18nReadOnly func() I18nReadOnly + IsDebug func() bool + Logger func() *golog.Logger + Minifier func() *minify.M + RouteExists func(ctx *Context, method, path string) bool + ServeHTTP func(w http.ResponseWriter, r *http.Request) + ServeHTTPC func(ctx *Context) + Shutdown func(ctx stdContext.Context) error + String func() string + Validate func(interface{}) error + View func(writer io.Writer, filename string, layout string, bindingData interface{}) error + func GetApplication(appName string) (Application, bool) + func GetApplications() []Application + func LastApplication() Application + func MustGetApplication(appName string) Application + type BodyDecoder interface + Decode func(data []byte) error + type BodyDecoderWithContext interface + DecodeContext func(ctx stdContext.Context, data []byte) error + type CompressReader struct + Encoding string + Src io.ReadCloser + func NewCompressReader(src io.Reader, encoding string) (*CompressReader, error) + type CompressResponseWriter struct + Disabled bool + Encoding string + Level int + func AcquireCompressResponseWriter(w ResponseWriter, r *http.Request, level int) (*CompressResponseWriter, error) + func (w *CompressResponseWriter) EndResponse() + func (w *CompressResponseWriter) Flush() + func (w *CompressResponseWriter) FlushHeaders() + func (w *CompressResponseWriter) FlushResponse() + func (w *CompressResponseWriter) Reset() bool + func (w *CompressResponseWriter) Write(p []byte) (int, error) + func (w *CompressResponseWriter) WriteTo(dest io.Writer, p []byte) (int, error) + type CompressWriter interface + Flush func() error + Reset func(io.Writer) + func NewCompressWriter(w io.Writer, encoding string, level int) (cw CompressWriter, err error) + type ConfigurationReadOnly interface + GetCharset func() string + GetDisableAutoFireStatusCode func() bool + GetDisableBodyConsumptionOnUnmarshal func() bool + GetDisablePathCorrection func() bool + GetDisablePathCorrectionRedirection func() bool + GetEnableEasyJSON func() bool + GetEnableOptimizations func() bool + GetEnablePathEscape func() bool + GetEnablePathIntelligence func() bool + GetEnableProtoJSON func() bool + GetFallbackViewContextKey func() string + GetFireEmptyFormError func() bool + GetFireMethodNotAllowed func() bool + GetForceLowercaseRouting func() bool + GetHostProxyHeaders func() map[string]bool + GetKeepAlive func() time.Duration + GetLanguageContextKey func() string + GetLanguageInputContextKey func() string + GetLocaleContextKey func() string + GetLogLevel func() string + GetOther func() map[string]interface{} + GetPostMaxMemory func() int64 + GetRemoteAddrHeaders func() []string + GetRemoteAddrHeadersForce func() bool + GetRemoteAddrPrivateSubnets func() []netutil.IPRange + GetResetOnFireErrorCode func() bool + GetSSLProxyHeaders func() map[string]string + GetSocketSharding func() bool + GetTimeFormat func() string + GetTimeout func() time.Duration + GetTimeoutMessage func() string + GetURLParamSeparator func() *string + GetVHost func() string + GetVersionAliasesContextKey func() string + GetVersionContextKey func() string + GetViewDataContextKey func() string + GetViewEngineContextKey func() string + GetViewLayoutContextKey func() string + type ContentNegotiator interface + Negotiate func(ctx *Context) (int, error) + type ContentSelector interface + SelectContent func(mime string) interface{} + type Context struct + func NewContext(app Application) *Context + func (ctx *Context) AbsoluteURI(s string) string + func (ctx *Context) AddCookieOptions(options ...CookieOption) + func (ctx *Context) AddHandler(handlers ...Handler) + func (ctx *Context) Application() Application + func (ctx *Context) BeginRequest(w http.ResponseWriter, r *http.Request) + func (ctx *Context) Binary(data []byte) (int, error) + func (ctx *Context) CallFunc(name string, args ...interface{}) ([]reflect.Value, error) + func (ctx *Context) CheckIfModifiedSince(modtime time.Time) (bool, error) + func (ctx *Context) ClearCookieOptions() + func (ctx *Context) ClientSupportsEncoding(encodings ...string) bool + func (ctx *Context) Clone() *Context + func (ctx *Context) CompressReader(enable bool) error + func (ctx *Context) CompressWriter(enable bool) error + func (ctx *Context) ContentType(cType string) + func (ctx *Context) Controller() reflect.Value + func (ctx *Context) Deadline() (deadline time.Time, ok bool) + func (ctx *Context) DisablePoolRelease() + func (ctx *Context) Do(handlers Handlers) + func (ctx *Context) Domain() string + func (ctx *Context) Done() <-chan struct{} + func (ctx *Context) EndRequest() + func (ctx *Context) Err() error + func (ctx *Context) Exec(method string, path string) + func (ctx *Context) FallbackView(providers ...FallbackViewProvider) + func (ctx *Context) FindClosest(n int) []string + func (ctx *Context) FormFile(key string) (multipart.File, *multipart.FileHeader, error) + func (ctx *Context) FormFiles(key string, before ...func(*Context, *multipart.FileHeader) bool) (files []multipart.File, headers []*multipart.FileHeader, err error) + func (ctx *Context) FormValue(name string) string + func (ctx *Context) FormValueDefault(name string, def string) string + func (ctx *Context) FormValues() map[string][]string + func (ctx *Context) FullRequestURI() string + func (ctx *Context) GetBody() ([]byte, error) + func (ctx *Context) GetContentLength() int64 + func (ctx *Context) GetContentType() string + func (ctx *Context) GetContentTypeRequested() string + func (ctx *Context) GetCookie(name string, options ...CookieOption) string + func (ctx *Context) GetCurrentRoute() RouteReadOnly + func (ctx *Context) GetErr() error + func (ctx *Context) GetErrPublic() (bool, error) + func (ctx *Context) GetFunc(name string) (*Func, bool) + func (ctx *Context) GetHeader(name string) string + func (ctx *Context) GetID() interface{} + func (ctx *Context) GetLocale() Locale + func (ctx *Context) GetReferrer() Referrer + func (ctx *Context) GetRequestCookie(name string, options ...CookieOption) (*http.Cookie, error) + func (ctx *Context) GetStatusCode() int + func (ctx *Context) GetViewData() map[string]interface{} + func (ctx *Context) HTML(format string, args ...interface{}) (int, error) + func (ctx *Context) HandlerFileLine() (file string, line int) + func (ctx *Context) HandlerIndex(n int) (currentIndex int) + func (ctx *Context) HandlerName() string + func (ctx *Context) Handlers() Handlers + func (ctx *Context) Header(name string, value string) + func (ctx *Context) Host() string + func (ctx *Context) IsAjax() bool + func (ctx *Context) IsCanceled() bool + func (ctx *Context) IsDebug() bool + func (ctx *Context) IsGRPC() bool + func (ctx *Context) IsHTTP2() bool + func (ctx *Context) IsMobile() bool + func (ctx *Context) IsRecording() (*ResponseRecorder, bool) + func (ctx *Context) IsRecordingBody() bool + func (ctx *Context) IsRecovered() (*ErrPanicRecovery, bool) + func (ctx *Context) IsSSL() bool + func (ctx *Context) IsScript() bool + func (ctx *Context) IsStopped() bool + func (ctx *Context) IsWWW() bool + func (ctx *Context) JSON(v interface{}, opts ...JSON) (err error) + func (ctx *Context) JSONP(v interface{}, opts ...JSONP) (err error) + func (ctx *Context) Logout(args ...interface{}) error + func (ctx *Context) Markdown(markdownB []byte, opts ...Markdown) (err error) + func (ctx *Context) MaxAge() int64 + func (ctx *Context) Method() string + func (ctx *Context) MsgPack(v interface{}) (int, error) + func (ctx *Context) Negotiate(v interface{}) (int, error) + func (ctx *Context) Negotiation() *NegotiationBuilder + func (ctx *Context) Next() + func (ctx *Context) NextHandler() Handler + func (ctx *Context) NextOr(handlers ...Handler) bool + func (ctx *Context) NextOrNotFound() bool + func (ctx *Context) NotFound() + func (ctx *Context) OnClose(cb Handler) + func (ctx *Context) OnCloseErr(cb func() error) + func (ctx *Context) OnConnectionClose(cb Handler) bool + func (ctx *Context) OnConnectionCloseErr(cb func() error) bool + func (ctx *Context) Params() *RequestParams + func (ctx *Context) Path() string + func (ctx *Context) PostValue(name string) string + func (ctx *Context) PostValueBool(name string) (bool, error) + func (ctx *Context) PostValueComplex128(name string) (complex128, error) + func (ctx *Context) PostValueComplex128Default(name string, def complex128) complex128 + func (ctx *Context) PostValueComplex64(name string) (complex64, error) + func (ctx *Context) PostValueComplex64Default(name string, def complex64) complex64 + func (ctx *Context) PostValueDefault(name string, def string) string + func (ctx *Context) PostValueFloat32(name string) (float32, error) + func (ctx *Context) PostValueFloat32Default(name string, def float32) float32 + func (ctx *Context) PostValueFloat64(name string) (float64, error) + func (ctx *Context) PostValueFloat64Default(name string, def float64) float64 + func (ctx *Context) PostValueInt(name string) (int, error) + func (ctx *Context) PostValueInt16(name string) (int16, error) + func (ctx *Context) PostValueInt16Default(name string, def int16) int16 + func (ctx *Context) PostValueInt32(name string) (int32, error) + func (ctx *Context) PostValueInt32Default(name string, def int32) int32 + func (ctx *Context) PostValueInt64(name string) (int64, error) + func (ctx *Context) PostValueInt64Default(name string, def int64) int64 + func (ctx *Context) PostValueInt8(name string) (int8, error) + func (ctx *Context) PostValueInt8Default(name string, def int8) int8 + func (ctx *Context) PostValueIntDefault(name string, def int) int + func (ctx *Context) PostValueMany(name string) (string, error) + func (ctx *Context) PostValueSimpleDate(name string) (time.Time, error) + func (ctx *Context) PostValueString(name string) (string, error) + func (ctx *Context) PostValueTime(layout, name string) (time.Time, error) + func (ctx *Context) PostValueTrim(name string) string + func (ctx *Context) PostValueUint(name string) (uint, error) + func (ctx *Context) PostValueUint16(name string) (uint16, error) + func (ctx *Context) PostValueUint32(name string) (uint32, error) + func (ctx *Context) PostValueUint64(name string) (uint64, error) + func (ctx *Context) PostValueUint8(name string) (uint8, error) + func (ctx *Context) PostValueWeekday(name string) (time.Weekday, error) + func (ctx *Context) PostValues(name string) ([]string, error) + func (ctx *Context) Problem(v interface{}, opts ...ProblemOptions) error + func (ctx *Context) Proceed(h Handler) bool + func (ctx *Context) ProceedAndReportIfStopped(h Handler) (bool, bool) + func (ctx *Context) Protobuf(v proto.Message) (int, error) + func (ctx *Context) ReadBody(ptr interface{}) error + func (ctx *Context) ReadForm(formObject interface{}) error + func (ctx *Context) ReadHeaders(ptr interface{}) error + func (ctx *Context) ReadJSON(outPtr interface{}, opts ...JSONReader) error + func (ctx *Context) ReadJSONProtobuf(ptr proto.Message, opts ...ProtoUnmarshalOptions) error + func (ctx *Context) ReadJSONStream(onDecode func(DecodeFunc) error, opts ...JSONReader) error + func (ctx *Context) ReadMsgPack(ptr interface{}) error + func (ctx *Context) ReadMultipartRelated() (MultipartRelated, error) + func (ctx *Context) ReadParams(ptr interface{}) error + func (ctx *Context) ReadProtobuf(ptr proto.Message) error + func (ctx *Context) ReadQuery(ptr interface{}) error + func (ctx *Context) ReadURL(ptr interface{}) error + func (ctx *Context) ReadXML(outPtr interface{}) error + func (ctx *Context) ReadYAML(outPtr interface{}) error + func (ctx *Context) Record() + func (ctx *Context) RecordRequestBody(b bool) + func (ctx *Context) Recorder() *ResponseRecorder + func (ctx *Context) Redirect(urlToRedirect string, statusHeader ...int) + func (ctx *Context) ReflectValue() []reflect.Value + func (ctx *Context) RegisterDependency(v interface{}) + func (ctx *Context) RemoteAddr() string + func (ctx *Context) RemoveCookie(name string, options ...CookieOption) + func (ctx *Context) Render(statusCode int, r interface{ ... }) + func (ctx *Context) Request() *http.Request + func (ctx *Context) RequestPath(escape bool) string + func (ctx *Context) ResetQuery() + func (ctx *Context) ResetRequest(r *http.Request) + func (ctx *Context) ResetResponseWriter(newResponseWriter ResponseWriter) + func (ctx *Context) ResponseWriter() ResponseWriter + func (ctx *Context) ResumeExecution() bool + func (ctx *Context) RouteExists(method, path string) bool + func (ctx *Context) RouteName() string + func (ctx *Context) SaveFormFile(fh *multipart.FileHeader, dest string) (int64, error) + func (ctx *Context) Scheme() string + func (ctx *Context) SendFile(src string, destName string) error + func (ctx *Context) SendFileWithRate(src, destName string, limit float64, burst int) error + func (ctx *Context) ServeContent(content io.ReadSeeker, filename string, modtime time.Time) + func (ctx *Context) ServeContentWithRate(content io.ReadSeeker, filename string, modtime time.Time, limit float64, ...) + func (ctx *Context) ServeFile(filename string) error + func (ctx *Context) ServeFileWithRate(filename string, limit float64, burst int) error + func (ctx *Context) SetCookie(cookie *http.Cookie, options ...CookieOption) + func (ctx *Context) SetCookieKV(name, value string, options ...CookieOption) + func (ctx *Context) SetCurrentRoute(route RouteReadOnly) + func (ctx *Context) SetErr(err error) + func (ctx *Context) SetErrPrivate(err error) + func (ctx *Context) SetFunc(name string, fn interface{}, persistenceArgs ...interface{}) + func (ctx *Context) SetHandlers(handlers Handlers) + func (ctx *Context) SetID(id interface{}) + func (ctx *Context) SetLanguage(langCode string) + func (ctx *Context) SetLastModified(modtime time.Time) + func (ctx *Context) SetLogoutFunc(fn interface{}, persistenceArgs ...interface{}) + func (ctx *Context) SetMaxRequestBodySize(limitOverBytes int64) + func (ctx *Context) SetUser(i interface{}) error + func (ctx *Context) Skip() + func (ctx *Context) StatusCode(statusCode int) + func (ctx *Context) StopExecution() + func (ctx *Context) StopWithError(statusCode int, err error) + func (ctx *Context) StopWithJSON(statusCode int, jsonObject interface{}) error + func (ctx *Context) StopWithPlainError(statusCode int, err error) + func (ctx *Context) StopWithProblem(statusCode int, problem Problem) error + func (ctx *Context) StopWithStatus(statusCode int) + func (ctx *Context) StopWithText(statusCode int, format string, args ...interface{}) + func (ctx *Context) StreamWriter(writer func(w io.Writer) error) error + func (ctx *Context) String() string + func (ctx *Context) Subdomain() (subdomain string) + func (ctx *Context) SubdomainFull() string + func (ctx *Context) Text(format string, args ...interface{}) (int, error) + func (ctx *Context) TextYAML(v interface{}) error + func (ctx *Context) Tr(key string, args ...interface{}) string + func (ctx *Context) URLParam(name string) string + func (ctx *Context) URLParamBool(name string) (bool, error) + func (ctx *Context) URLParamBoolDefault(name string, def bool) bool + func (ctx *Context) URLParamDefault(name string, def string) string + func (ctx *Context) URLParamEscape(name string) string + func (ctx *Context) URLParamExists(name string) bool + func (ctx *Context) URLParamFloat64(name string) (float64, error) + func (ctx *Context) URLParamFloat64Default(name string, def float64) float64 + func (ctx *Context) URLParamInt(name string) (int, error) + func (ctx *Context) URLParamInt32Default(name string, def int32) int32 + func (ctx *Context) URLParamInt64(name string) (int64, error) + func (ctx *Context) URLParamInt64Default(name string, def int64) int64 + func (ctx *Context) URLParamIntDefault(name string, def int) int + func (ctx *Context) URLParamSlice(name string) []string + func (ctx *Context) URLParamTrim(name string) string + func (ctx *Context) URLParamUint64(name string) uint64 + func (ctx *Context) URLParams() map[string]string + func (ctx *Context) URLParamsSorted() []memstore.StringEntry + func (ctx *Context) UnmarshalBody(outPtr interface{}, unmarshaler Unmarshaler) error + func (ctx *Context) UnregisterDependency(typ reflect.Type) bool + func (ctx *Context) UploadFormFiles(destDirectory string, before ...func(*Context, *multipart.FileHeader) bool) (uploaded []*multipart.FileHeader, n int64, err error) + func (ctx *Context) UpsertCookie(cookie *http.Cookie, options ...CookieOption) bool + func (ctx *Context) User() User + func (ctx *Context) Value(key interface{}) interface{} + func (ctx *Context) Values() *memstore.Store + func (ctx *Context) View(filename string, optionalViewModel ...interface{}) error + func (ctx *Context) ViewData(key string, value interface{}) + func (ctx *Context) ViewEngine(engine ViewEngine) + func (ctx *Context) ViewLayout(layoutTmplFile string) + func (ctx *Context) VisitAllCookies(visitor func(name string, value string)) + func (ctx *Context) Write(rawBody []byte) (int, error) + func (ctx *Context) WriteNotModified() + func (ctx *Context) WriteString(body string) (n int, err error) + func (ctx *Context) WriteWithExpiration(body []byte, modtime time.Time) (int, error) + func (ctx *Context) Writef(format string, a ...interface{}) (n int, err error) + func (ctx *Context) XML(v interface{}, opts ...XML) (err error) + func (ctx *Context) YAML(v interface{}) error + type CookieOption func(ctx *Context, c *http.Cookie, op uint8) + func CookieAllowReclaim(cookieNames ...string) CookieOption + func CookieAllowSubdomains(cookieNames ...string) CookieOption + func CookieEncoding(encoding SecureCookie, cookieNames ...string) CookieOption + func CookieExpires(durFromNow time.Duration) CookieOption + func CookieHTTPOnly(httpOnly bool) CookieOption + func CookiePath(path string) CookieOption + func CookieSameSite(sameSite http.SameSite) CookieOption + type DecodeFunc func(outPtr interface{}) error + type DependenciesMap map[reflect.Type]reflect.Value + type ErrPanicRecovery struct + Callers []string + Cause interface{} + CurrentHandler string + RegisteredHandlers []string + Stack []byte + func IsErrPanicRecovery(err error) (*ErrPanicRecovery, bool) + func (e *ErrPanicRecovery) Error() string + func (e *ErrPanicRecovery) Is(err error) bool + type ErrPrivate interface + IrisPrivateError func() + func PrivateError(err error) ErrPrivate + type ErrViewNotExist struct + Data interface{} + IsLayout bool + Name string + func (e ErrViewNotExist) Error() string + type ErrorHandler interface + HandleContextError func(ctx *Context, err error) + type ErrorHandlerFunc func(ctx *Context, err error) + func (h ErrorHandlerFunc) HandleContextError(ctx *Context, err error) + type FallbackView string + func (f FallbackView) FallbackView(ctx *Context, err ErrViewNotExist) error + type FallbackViewFunc func(ctx *Context, err ErrViewNotExist) error + func (fn FallbackViewFunc) FallbackView(ctx *Context, err ErrViewNotExist) error + type FallbackViewLayout string + func (f FallbackViewLayout) FallbackView(ctx *Context, err ErrViewNotExist) error + type FallbackViewProvider interface + FallbackView func(ctx *Context, err ErrViewNotExist) error + type Filter func(*Context) bool + type Func struct + Meta *FuncMeta + PersistenceArgs []interface{} + Raw interface{} + RegisterName string + type FuncMeta struct + AcceptsContext bool + ExpectedArgumentsLength int + Handler Handler + HandlerWithErr func(*Context) error + PersistenceInputs []reflect.Value + RawFunc func() + RawFuncArgs func(...interface{}) + RawFuncArgsWithErr func(...interface{}) error + RawFuncWithErr func() error + ReturnsError bool + Type reflect.Type + Value reflect.Value + type GlobalCounter struct + Max uint64 + func NewGlobalCounter() *GlobalCounter + func (c *GlobalCounter) Get() uint64 + func (c *GlobalCounter) Increment() (newValue uint64) + type Handler func(*Context) + func NewConditionalHandler(filter Filter, handlers ...Handler) Handler + type Handlers []Handler + func JoinHandlers(h1 Handlers, h2 Handlers) Handlers + func UpsertHandlers(h1 Handlers, h2 Handlers) Handlers + type I18nReadOnly interface + GetLocale func(ctx *Context) Locale + Tags func() []language.Tag + Tr func(lang string, key string, args ...interface{}) string + TrContext func(ctx *Context, key string, args ...interface{}) string + type JSON struct + ASCII bool + Indent string + OmitErrorHandler bool + Prefix string + Proto ProtoMarshalOptions + Secure bool + UnescapeHTML bool + func (j *JSON) IsDefault() bool + type JSONP struct + Callback string + Indent string + OmitErrorHandler bool + type JSONReader struct + ArrayStream bool + DisallowUnknownFields bool + Optimize bool + type Locale interface + GetMessage func(key string, args ...interface{}) string + Index func() int + Language func() string + Tag func() *language.Tag + type Map = map[string]interface + type Markdown struct + OmitErrorHandler bool + Sanitize bool + type MultipartRelated struct + ContentIDs []string + Contents map[string]MultipartRelatedContent + type MultipartRelatedContent struct + Body []byte + Headers map[string][]string + ID string + type N struct + Binary []byte + HTML string + JSON interface{} + JSONP interface{} + Markdown []byte + MsgPack interface{} + Other []byte + Problem Problem + Protobuf interface{} + Text string + XML interface{} + YAML interface{} + func (n N) SelectContent(mime string) interface{} + type NameExpr struct + func (expr *NameExpr) MatchString(s string) bool + type NegotiationAcceptBuilder struct + func (n *NegotiationAcceptBuilder) Binary() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) Charset(charset ...string) *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) Encoding(encoding ...string) *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) EncodingGzip() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) HTML() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) JSON() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) JSONP() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) MIME(mimeType ...string) *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) Markdown() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) MsgPack() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) Override() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) Problem() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) Protobuf() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) Text() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) TextYAML() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) XML() *NegotiationAcceptBuilder + func (n *NegotiationAcceptBuilder) YAML() *NegotiationAcceptBuilder + type NegotiationBuilder struct + Accept NegotiationAcceptBuilder + func (n *NegotiationBuilder) Any(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) Binary(v ...[]byte) *NegotiationBuilder + func (n *NegotiationBuilder) Build() (contentType, charset, encoding string, content interface{}) + func (n *NegotiationBuilder) Charset(charset ...string) *NegotiationBuilder + func (n *NegotiationBuilder) Clear() *NegotiationBuilder + func (n *NegotiationBuilder) Encoding(encoding ...string) *NegotiationBuilder + func (n *NegotiationBuilder) EncodingGzip() *NegotiationBuilder + func (n *NegotiationBuilder) HTML(v ...string) *NegotiationBuilder + func (n *NegotiationBuilder) JSON(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) JSONP(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) MIME(mime string, content interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) Markdown(v ...[]byte) *NegotiationBuilder + func (n *NegotiationBuilder) MsgPack(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) Problem(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) Protobuf(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) Text(v ...string) *NegotiationBuilder + func (n *NegotiationBuilder) TextYAML(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) XML(v ...interface{}) *NegotiationBuilder + func (n *NegotiationBuilder) YAML(v ...interface{}) *NegotiationBuilder + type Pool struct + func New(newFunc func() interface{}) *Pool + func (c *Pool) Acquire(w http.ResponseWriter, r *http.Request) *Context + func (c *Pool) Release(ctx *Context) + func (c *Pool) ReleaseLight(ctx *Context) + type Problem map[string]interface + func (p Problem) Cause(cause Problem) Problem + func (p Problem) Detail(detail string) Problem + func (p Problem) DetailErr(err error) Problem + func (p Problem) Error() string + func (p Problem) GetTempKey(key string) interface{} + func (p Problem) Instance(instanceURI string) Problem + func (p Problem) Key(key string, value interface{}) Problem + func (p Problem) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (p Problem) Status(statusCode int) Problem + func (p Problem) TempKey(key string, value interface{}) Problem + func (p Problem) Title(title string) Problem + func (p Problem) Type(uri string) Problem + func (p Problem) Validate() bool + func NewProblem() Problem + type ProblemOptions struct + JSON JSON + RenderXML bool + RetryAfter interface{} + RetryAfterFunc func(*Context) interface{} + XML XML + func (o *ProblemOptions) Apply(ctx *Context) + type ProtoMarshalOptions = protojson.MarshalOptions + type ProtoUnmarshalOptions = protojson.UnmarshalOptions + type Referrer struct + Domain string + GoogleType ReferrerGoogleSearchType + Label string + Path string + Query string + Raw string + Subdomain string + Tld string + Type ReferrerType + URL string + func (ref Referrer) String() string + type ReferrerGoogleSearchType = goreferrer.GoogleSearchType + type ReferrerType = goreferrer.ReferrerType + type RequestParams struct + func (r *RequestParams) Get(key string) string + func (r *RequestParams) GetDecoded(key string) string + func (r *RequestParams) GetEntry(key string) memstore.Entry + func (r *RequestParams) GetEntryAt(index int) memstore.Entry + func (r *RequestParams) GetEscape(key string) string + func (r *RequestParams) GetIntUnslashed(key string) (int, bool) + func (r *RequestParams) GetTrim(key string) string + func (r *RequestParams) GetTrimFile(key string) string + func (r *RequestParams) GetTrimFileInt(key string) int + func (r *RequestParams) GetTrimFileUint(key string) uint + func (r *RequestParams) GetTrimFileUint64(key string) uint64 + func (r *RequestParams) GetTrimHTML(key string) string + func (r *RequestParams) GetTrimJSON(key string) string + func (r *RequestParams) GetTrimXML(key string) string + func (r *RequestParams) Set(key, value string) + func (r *RequestParams) Visit(visitor func(key string, value string)) + type ResponseRecorder struct + func AcquireResponseRecorder() *ResponseRecorder + func (w *ResponseRecorder) BeginRecord(underline ResponseWriter) + func (w *ResponseRecorder) Body() []byte + func (w *ResponseRecorder) ClearHeaders() + func (w *ResponseRecorder) Clone() ResponseWriter + func (w *ResponseRecorder) CopyTo(res ResponseWriter) + func (w *ResponseRecorder) EndResponse() + func (w *ResponseRecorder) Flush() + func (w *ResponseRecorder) FlushResponse() + func (w *ResponseRecorder) Header() http.Header + func (w *ResponseRecorder) Naive() http.ResponseWriter + func (w *ResponseRecorder) Push(target string, opts *http.PushOptions) (err error) + func (w *ResponseRecorder) Reset() bool + func (w *ResponseRecorder) ResetBody() + func (w *ResponseRecorder) ResetHeaders() + func (w *ResponseRecorder) Result() *http.Response + func (w *ResponseRecorder) SetBody(b []byte) + func (w *ResponseRecorder) SetBodyString(s string) + func (w *ResponseRecorder) Write(contents []byte) (int, error) + type ResponseWriter interface + BeginResponse func(http.ResponseWriter) + Clone func() ResponseWriter + CopyTo func(ResponseWriter) + EndResponse func() + Flush func() + FlushResponse func() + Flusher func() (http.Flusher, bool) + GetBeforeFlush func() func() + IsHijacked func() bool + Naive func() http.ResponseWriter + SetBeforeFlush func(cb func()) + SetWriter func(underline http.ResponseWriter) + SetWritten func(int) + StatusCode func() int + Written func() int + func AcquireResponseWriter() ResponseWriter + type ResponseWriterBodyReseter interface + ResetBody func() + type ResponseWriterDisabler interface + Disable func() + type ResponseWriterReseter interface + Reset func() bool + type ResponseWriterWriteTo interface + WriteTo func(dest io.Writer, p []byte) + type RouteReadOnly interface + GetChangeFreq func() string + GetLastMod func() time.Time + GetPriority func() float32 + IsOnline func() bool + IsStatic func() bool + MainHandlerIndex func() int + MainHandlerName func() string + Method func() string + Name func() string + Path func() string + Property func(key string) (interface{}, bool) + ResolvePath func(args ...string) string + StaticPath func() string + StatusErrorCode func() int + String func() string + Subdomain func() string + Tmpl func() macro.Template + Trace func(w io.Writer, stoppedIndex int) + type SecureCookie interface + Decode func(cookieName string, cookieValue string, cookieValuePtr interface{}) error + Encode func(cookieName string, cookieValue interface{}) (string, error) + type SimpleUser struct + Authorization string + AuthorizedAt time.Time + Email string + Fields Map + ID string + Password string + Roles []string + Token json.RawMessage + Username string + func (u *SimpleUser) GetAuthorization() (string, error) + func (u *SimpleUser) GetAuthorizedAt() (time.Time, error) + func (u *SimpleUser) GetEmail() (string, error) + func (u *SimpleUser) GetField(key string) (interface{}, error) + func (u *SimpleUser) GetID() (string, error) + func (u *SimpleUser) GetPassword() (string, error) + func (u *SimpleUser) GetRaw() (interface{}, error) + func (u *SimpleUser) GetRoles() ([]string, error) + func (u *SimpleUser) GetToken() ([]byte, error) + func (u *SimpleUser) GetUsername() (string, error) + type Unmarshaler interface + Unmarshal func(data []byte, outPtr interface{}) error + type UnmarshalerFunc func(data []byte, outPtr interface{}) error + func (u UnmarshalerFunc) Unmarshal(data []byte, v interface{}) error + type User interface + GetAuthorization func() (string, error) + GetAuthorizedAt func() (time.Time, error) + GetEmail func() (string, error) + GetField func(key string) (interface{}, error) + GetID func() (string, error) + GetPassword func() (string, error) + GetRaw func() (interface{}, error) + GetRoles func() ([]string, error) + GetToken func() ([]byte, error) + GetUsername func() (string, error) + type UserGetPassword interface + GetPassword func() string + type UserGetUsername interface + GetUsername func() string + type UserMap Map + func (u UserMap) GetAuthorization() (string, error) + func (u UserMap) GetAuthorizedAt() (time.Time, error) + func (u UserMap) GetEmail() (string, error) + func (u UserMap) GetField(key string) (interface{}, error) + func (u UserMap) GetID() (string, error) + func (u UserMap) GetPassword() (string, error) + func (u UserMap) GetRaw() (interface{}, error) + func (u UserMap) GetRoles() ([]string, error) + func (u UserMap) GetToken() ([]byte, error) + func (u UserMap) GetUsername() (string, error) + type UserPartial struct + Raw interface{} + func (u *UserPartial) GetAuthorization() (string, error) + func (u *UserPartial) GetAuthorizedAt() (time.Time, error) + func (u *UserPartial) GetEmail() (string, error) + func (u *UserPartial) GetField(key string) (interface{}, error) + func (u *UserPartial) GetID() (string, error) + func (u *UserPartial) GetPassword() (string, error) + func (u *UserPartial) GetRaw() (interface{}, error) + func (u *UserPartial) GetRoles() ([]string, error) + func (u *UserPartial) GetToken() ([]byte, error) + func (u *UserPartial) GetUsername() (string, error) + type Validator interface + Struct func(interface{}) error + type ViewEngine interface + ExecuteWriter func(w io.Writer, filename string, layout string, bindingData interface{}) error + Ext func() string + Load func() error + Name func() string + type ViewEngineFuncer interface + AddFunc func(funcName string, funcBody interface{}) + type XML struct + Indent string + OmitErrorHandler bool + Prefix string