package
module
Version:
v0.0.22
Opens a new window with list of versions in this module.
Published: Feb 3, 2023
License: MIT
Opens a new window with license information.
Imports: 22
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
type Config struct {
DebugAddress string `yaml:"debugAddress,omitempty"`
TlsDir string `yaml:"tlsDir,omitempty"`
Routes []Route `yaml:"routes,omitempty"`
}
type HttpConfig struct {
ForceTLS bool `yaml:"forceTLS,omitempty"`
}
type Logger interface {
Println(v ...interface{})
}
type Replace struct {
Old string `yaml:"old,omitempty"`
New string `yaml:"new,omitempty"`
}
type Route struct {
Domain string `yaml:"domain,omitempty"`
Target string `yaml:"target,omitempty"`
HTTP HttpConfig `yaml:"http,omitempty"`
Replaces []Replace `yaml:"replaces,omitempty"`
Stream bool `yaml:"stream,omitempty"`
}
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.