Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
RedirectsAppURL string `json:"redirectsAppURL,omitempty"`
}
func CreateConfig ¶
func CreateConfig() *Config
type RedirectsPlugin ¶
type RedirectsPlugin struct {
// contains filtered or unexported fields
}
func (*RedirectsPlugin) ServeHTTP ¶
func (rp *RedirectsPlugin) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP intercepts a request and matches it against the existing rules If a match is found, it redirects accordingly
Click to show internal directories.
Click to hide internal directories.