Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Redirects []Redirect `json:"redirects,omitempty"`
}
func CreateConfig ¶
func CreateConfig() *Config
type DynamicRedirects ¶
type DynamicRedirects struct {
// contains filtered or unexported fields
}
func (*DynamicRedirects) ServeHTTP ¶
func (dynamicRedirects *DynamicRedirects) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type Redirect ¶
type Redirect struct {
SourceURL string `json:"sourceURL,omitempty"`
StatusCode int `json:"statusCode,omitempty"`
PreserveQueryString string `json:"preserveQueryString,omitempty"`
AuthenticatedCookie string `json:"authenticatedCookie,omitempty"`
AuthenticatedTarget string `json:"authenticatedTarget,omitempty"`
LocaleCookie string `json:"localeCookie,omitempty"`
DefaultTarget string `json:"defaultTarget,omitempty"`
LocaleTargets map[string]string `json:"localeTargets,omitempty"`
}
type RuntimeRedirect ¶
Click to show internal directories.
Click to hide internal directories.