Versions in this module Expand all Collapse all v0 v0.0.0 Dec 20, 2023 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 StatusAccepted + const StatusAlreadyReported + const StatusBadGateway + const StatusBadRequest + const StatusConflict + const StatusContinue + const StatusCreated + 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 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 StatusTooManyRequests + const StatusUnauthorized + const StatusUnavailableForLegalReasons + const StatusUnprocessableEntity + const StatusUnsupportedMediaType + const StatusUpgradeRequired + const StatusUseProxy + const StatusVariantAlsoNegotiates + const Version + var Cache = cache.Handler + var CheckErr = func(err error) + var WithFireMethodNotAllowed = func(app *Application) + var WithPathEscape = func(app *Application) + var WithoutAutoFireStatusCode = func(app *Application) + var WithoutBanner = func(app *Application) + var WithoutBodyConsumptionOnUnmarshal = func(app *Application) + var WithoutInterruptHandler = func(app *Application) + var WithoutPathCorrection = func(app *Application) + func ToHandler(handler interface{}) context.Handler + type Application struct + ContextPool *context.Pool + Scheduler host.Scheduler + Shutdown func(stdContext.Context) error + func Default() *Application + func New() *Application + func (app *Application) AttachLogger(logWriter io.Writer) + func (app *Application) AttachSessionManager(manager sessions.Sessions) + func (app *Application) AttachView(viewEngine view.Engine) error + func (app *Application) Build() (err error) + func (app *Application) ConfigurationReadOnly() context.ConfigurationReadOnly + func (app *Application) Configure(configurators ...Configurator) *Application + func (app *Application) Listen(addr string) + func (app *Application) ListenLETSENCRYPT(addr string, cacheDirOptional ...string) + func (app *Application) ListenTLS(addr string, certFile, keyFile string) + func (app *Application) ListenUNIX(socketFile string, mode os.FileMode) + func (app *Application) Log(format string, a ...interface{}) + func (app *Application) NewHost(srv *http.Server) *host.Supervisor + func (app *Application) OnStatusCode(statusCode int, handler context.Handler) + func (app *Application) Run(serve Runner, withOrWithout ...Configurator) error + func (app *Application) SPA(assetHandler context.Handler) + func (app *Application) Serve(l net.Listener) error + func (app *Application) SessionManager() (sessions.Sessions, error) + func (app *Application) View(writer io.Writer, filename string, layout string, bindingData interface{}) error + type Configuration struct + Charset string + DisableAutoFireStatusCode bool + DisableBanner bool + DisableBodyConsumptionOnUnmarshal bool + DisableInterruptHandler bool + DisablePathCorrection bool + EnablePathEscape bool + FireMethodNotAllowed bool + Other map[string]interface{} + TimeFormat string + TranslateFunctionContextKey string + TranslateLanguageContextKey string + 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) GetEnablePathEscape() bool + func (c Configuration) GetFireMethodNotAllowed() bool + func (c Configuration) GetOther() map[string]interface{} + func (c Configuration) GetTimeFormat() string + func (c Configuration) GetTranslateFunctionContextKey() string + func (c Configuration) GetTranslateLanguageContextKey() 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 WithTimeFormat(timeformat string) Configurator + type Runner func(*Application) error + func Addr(addr string) Runner + func AutoTLS(addr string) Runner + func Listener(l net.Listener) Runner + func Raw(f func() error) Runner + func Server(srv *http.Server) Runner + func TLS(addr string, certFile, keyFile string) Runner