Documentation
¶
Index ¶
Constants ¶
View Source
const ( SOURCE_STDIN = "@source:stdin" SOURCE_FILE = "@source:file" SOURCE_URL = "@source:url" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Source string `yaml:"source"` ConfigURI string `yaml:"config-uri"` Port int `yaml:"port"` CacheTTL time.Duration `yaml:"cache-ttl"` LoadedAt time.Time `yaml:"loaded-at"` TempRedirect bool `yaml:"temp-redirect"` Redirects []Redirect `yaml:"redirects"` }
func LoadConfig ¶
func (*Config) GetRedirect ¶
Gets the redirection that matches the given domain
Click to show internal directories.
Click to hide internal directories.