Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Home ¶
func (*Home) HandleRoute ¶
type Redirect ¶
type Redirect struct { // Target is the target URL to redirect to. Target string // Fallback is used when target is the empty string. Fallback http.Handler // Absolute determines if the request path should be appended to the target URL when redirecting. // By default this path is always appended, set Absolute to true to prevent this. Absolute bool // Overrides is a map from paths to URLs that should override the default target. Overrides map[string]string // Permanent determines if the redirect responses issued should return // Permanent Redirect (Status Code 308) or Temporary Redirect (Status Code 307). Permanent bool }
Redirect implements a redirect server that redirects all requests. It implements http.Handler.
Click to show internal directories.
Click to hide internal directories.