package
Version:
v0.0.0-...-437def5
Opens a new window with list of versions in this module.
Published: Jan 12, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DefaultRedirectConfigFile = "redirect.yaml"
)
func NewServer(listenAddr string, config Config) *redirectServer
Router returns a router that can add or remove redirects
type Config struct {
Redirect []Redirect `yaml:"redirect,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.