Versions in this module Expand all Collapse all v12 v12.1.9 Aug 12, 2022 Changes in this version + const MethodConnect + const MethodDelete + const MethodGet + const MethodHead + const MethodNone + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + const MethodTrace + const NoLayout + const ReferrerDirect + const ReferrerEmail + const ReferrerGoogleAdwords + const ReferrerGoogleOrganicSearch + const ReferrerIndirect + const ReferrerInvalid + const ReferrerNotGoogleSearch + const ReferrerSearch + const ReferrerSocial + const RouteError + const RouteOverride + const RouteSkip + 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 StatusNonAuthoritativeInfo + 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 StatusSwitchingProtocols + const StatusTeapot + const StatusTemporaryRedirect + const StatusTooEarly + const StatusTooManyRequests + const StatusUnauthorized + const StatusUnavailableForLegalReasons + const StatusUnprocessableEntity + const StatusUnsupportedMediaType + const StatusUpgradeRequired + const StatusUseProxy + const StatusVariantAlsoNegotiates + const Version + var Amber = view.Amber + var Cache = cache.Handler + var Cache304 = cache.Cache304 + var CookieCleanPath = context.CookieCleanPath + var CookieDecode = context.CookieDecode + var CookieEncode = context.CookieEncode + var CookieExpires = context.CookieExpires + var CookieHTTPOnly = context.CookieHTTPOnly + var CookiePath = context.CookiePath + var Django = view.Django + var ErrServerClosed = http.ErrServerClosed + var FileServer = router.FileServer + var FromStd = handlerconv.FromStd + var Gzip = context.Gzip + var HTML = view.HTML + var Handlebars = view.Handlebars + var IsErrPath = context.IsErrPath + var Jet = view.Jet + var LimitRequestBodySize = context.LimitRequestBodySize + var NewConditionalHandler = context.NewConditionalHandler + var NewProblem = context.NewProblem + var NoCache = cache.NoCache + var Pug = view.Pug + var RegisterOnInterrupt = host.RegisterOnInterrupt + var StaticCache = cache.StaticCache + var StripPrefix = router.StripPrefix + var WithFireMethodNotAllowed = func(app *Application) + var WithGlobalConfiguration = func(app *Application) + var WithOptimizations = func(app *Application) + var WithPathEscape = func(app *Application) + var WithTunneling = func(app *Application) + var WithoutAutoFireStatusCode = func(app *Application) + var WithoutBanner = WithoutStartupLog + var WithoutBodyConsumptionOnUnmarshal = func(app *Application) + var WithoutInterruptHandler = func(app *Application) + var WithoutPathCorrection = func(app *Application) + var WithoutPathCorrectionRedirection = func(app *Application) + var WithoutStartupLog = func(app *Application) + var XMLMap = context.XMLMap + type Application struct + ContextPool *context.Pool + Hosts []*host.Supervisor + I18n *i18n.I18n + func Default() *Application + func New() *Application + func (app *Application) Build() error + func (app *Application) ConfigurationReadOnly() context.ConfigurationReadOnly + func (app *Application) Configure(configurators ...Configurator) *Application + func (app *Application) ConfigureHost(configurators ...host.Configurator) *Application + func (app *Application) I18nReadOnly() context.I18nReadOnly + func (app *Application) Listen(hostPort string, withOrWithout ...Configurator) error + func (app *Application) Logger() *golog.Logger + func (app *Application) NewHost(srv *http.Server) *host.Supervisor + func (app *Application) RegisterView(viewEngine view.Engine) + func (app *Application) Run(serve Runner, withOrWithout ...Configurator) error + func (app *Application) Shutdown(ctx stdContext.Context) error + func (app *Application) SubdomainRedirect(from, to router.Party) router.Party + func (app *Application) View(writer io.Writer, filename string, layout string, bindingData interface{}) error + func (app *Application) WWW() router.Party + type Configuration struct + Charset string + DisableAutoFireStatusCode bool + DisableBodyConsumptionOnUnmarshal bool + DisableInterruptHandler bool + DisablePathCorrection bool + DisablePathCorrectionRedirection bool + DisableStartupLog bool + EnableOptimizations bool + EnablePathEscape bool + FireMethodNotAllowed bool + IgnoreServerErrors []string + LocaleContextKey string + Other map[string]interface{} + PostMaxMemory int64 + RemoteAddrHeaders map[string]bool + TimeFormat string + Tunneling TunnelingConfiguration + ViewDataContextKey string + ViewLayoutContextKey string + func DefaultConfiguration() Configuration + func TOML(filename string) Configuration + func YAML(filename string) Configuration + func (c Configuration) GetCharset() string + func (c Configuration) GetDisableAutoFireStatusCode() bool + func (c Configuration) GetDisableBodyConsumptionOnUnmarshal() bool + func (c Configuration) GetDisablePathCorrection() bool + func (c Configuration) GetDisablePathCorrectionRedirection() bool + func (c Configuration) GetEnableOptimizations() bool + func (c Configuration) GetEnablePathEscape() bool + func (c Configuration) GetFireMethodNotAllowed() bool + func (c Configuration) GetLocaleContextKey() string + func (c Configuration) GetOther() map[string]interface{} + func (c Configuration) GetPostMaxMemory() int64 + func (c Configuration) GetRemoteAddrHeaders() map[string]bool + func (c Configuration) GetTimeFormat() string + func (c Configuration) GetVHost() string + func (c Configuration) GetViewDataContextKey() string + func (c Configuration) GetViewLayoutContextKey() string + type Configurator func(*Application) + func WithCharset(charset string) Configurator + func WithConfiguration(c Configuration) Configurator + func WithOtherValue(key string, val interface{}) Configurator + func WithPostMaxMemory(limit int64) Configurator + func WithRemoteAddrHeader(headerName string) Configurator + func WithSitemap(startURL string) Configurator + func WithTimeFormat(timeformat string) Configurator + func WithoutRemoteAddrHeader(headerName string) Configurator + func WithoutServerError(errors ...error) Configurator + type Context = context.Context + type CookieOption = context.CookieOption + type DirOptions = router.DirOptions + type ExecutionOptions = router.ExecutionOptions + type ExecutionRules = router.ExecutionRules + type Filter = context.Filter + type Handler = context.Handler + type JSON = context.JSON + type Map = context.Map + type N = context.N + type Party = router.Party + type Problem = context.Problem + type ProblemOptions = context.ProblemOptions + type Runner func(*Application) error + func Addr(addr string, hostConfigs ...host.Configurator) Runner + func AutoTLS(addr string, domain string, email string, hostConfigs ...host.Configurator) Runner + func Listener(l net.Listener, hostConfigs ...host.Configurator) Runner + func Raw(f func() error) Runner + func Server(srv *http.Server, hostConfigs ...host.Configurator) Runner + func TLS(addr string, certFile, keyFile string, hostConfigs ...host.Configurator) Runner + type Supervisor = host.Supervisor + type Tunnel struct + Addr string + Name string + type TunnelingConfiguration struct + AuthToken string + Bin string + Region string + Tunnels []Tunnel + WebInterface string + type UnmarshalerFunc = context.UnmarshalerFunc + type XML = context.XML