Discover Packages
github.com/hexian000/gated
config
package
Version:
v0.0.0-...-1c66c14
Opens a new window with list of versions in this module.
Published: Sep 14, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Auth struct {
Certificate string `json:"cert"`
PrivateKey string `json:"key"`
AutorizedCerts []string `json:"authcerts"`
}
type Main struct {
Name string `json:"name"`
Domain string `json:"vdomain"`
ServerName string `json:"sni"`
Listen string `json:"listen"`
HTTPListen string `json:"httplisten"`
AdvertiseAddr string `json:"addr"`
Servers []Server `json:"servers"`
Hosts map[string ]string `json:"hosts"`
Routes Routes `json:"routes"`
Auth Auth `json:"auth"`
Transport Transport `json:"transport"`
Socks5 []Socks5 `json:"socks5"`
LogLevel int `json:"loglevel"`
Log string `json:"log"`
}
type Routes struct {
CacheTimeout int `json:"cachetimeout"`
Rules []string `json:"rules"`
Default string `json:"default"`
}
type Server struct {
ServerName string `json:"sni"`
Address string `json:"addr"`
}
type Socks5 struct {
Listen string `json:"listen"`
Forward string `json:"forward"`
}
type Transport struct {
NoDelay bool `json:"nodelay"`
Linger int `json:"linger"`
KeepAliveInterval int `json:"keepalive"`
Timeout int `json:"timeout"`
WriteTimeout int `json:"writetimeout"`
IdleTimeout int `json:"idletimeout"`
StreamWindow uint32 `json:"window"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.