Documentation ¶
Overview ¶
Package redirect is middleware for redirecting certain requests to other locations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(c middleware.Controller) (middleware.Middleware, error)
New instantiates a new Redirect middleware.
Types ¶
type Redirect ¶
type Redirect struct { Next middleware.Handler Rules []Rule }
Redirect is middleware to respond with HTTP redirects
Click to show internal directories.
Click to hide internal directories.