Documentation
¶
Overview ¶
Package redirect does redirect stuff
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Skipper: middleware.DefaultSkipper, Redirects: map[string]string{}, Code: 0, }
DefaultConfig is the default configuration of the redirect middleware
Functions ¶
func New ¶
func New() echo.MiddlewareFunc
New creates a new middleware function with the default config
func NewWithConfig ¶
func NewWithConfig(config Config) echo.MiddlewareFunc
NewWithConfig returns a new router middleware handler
Types ¶
Click to show internal directories.
Click to hide internal directories.