Documentation ¶
Index ¶
- type Fallback
- func (instance *Fallback) Redirect(ctx *context.Context, statusCode int, target string)
- func (instance *Fallback) RedirectHtml(ctx *context.Context, statusCode int, target string, ...)
- func (instance *Fallback) RedirectJson(ctx *context.Context, statusCode int, target string, ...)
- func (instance *Fallback) RedirectText(ctx *context.Context, statusCode int, _ string, ...)
- func (instance *Fallback) RedirectXml(ctx *context.Context, statusCode int, target string, ...)
- func (instance *Fallback) RedirectYaml(ctx *context.Context, statusCode int, target string, ...)
- func (instance *Fallback) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
- func (instance *Fallback) Status(ctx *context.Context, statusCode int, path string, canHandleTemporary bool)
- func (instance *Fallback) StatusAsHtml(ctx *context.Context, statusCode int, path string, canHandleTemporary bool, ...)
- func (instance *Fallback) StatusAsJson(ctx *context.Context, statusCode int, path string, _ bool, ...)
- func (instance *Fallback) StatusAsText(ctx *context.Context, statusCode int, _ string, _ bool, ...)
- func (instance *Fallback) StatusAsXml(ctx *context.Context, statusCode int, path string, _ bool, ...)
- func (instance *Fallback) StatusAsYaml(ctx *context.Context, statusCode int, path string, _ bool, ...)
- func (instance *Fallback) Unknown(ctx *context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fallback ¶
type Fallback struct { FileProviders support.FileProviders RedirectTemplate *template.Template StatusTemplate *template.Template Bundle *i18n.Bundle ReloadTimeoutOnTemporaryIssues time.Duration }
func (*Fallback) RedirectHtml ¶
func (*Fallback) RedirectJson ¶
func (*Fallback) RedirectText ¶
func (*Fallback) RedirectXml ¶
func (*Fallback) RedirectYaml ¶
func (*Fallback) RegisterFlag ¶
func (instance *Fallback) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
func (*Fallback) StatusAsHtml ¶
func (*Fallback) StatusAsJson ¶
func (*Fallback) StatusAsText ¶
func (*Fallback) StatusAsXml ¶
func (*Fallback) StatusAsYaml ¶
Click to show internal directories.
Click to hide internal directories.