Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { RunType RunType `json:"run_type"` LogLevel int `json:"log_level"` LocalHost string `json:"local_addr"` LocalPort int `json:"local_port"` RemoteHost string `json:"remote_addr"` RemotePort int `json:"remote_port"` Passwords []string `json:"password"` TLS TLSConfig `json:"ssl"` TCP TCPConfig `json:"tcp"` MySQL MySQLConfig `json:"mysql"` SQLite SQLiteConfig `json:"sqlite"` Mux MuxConfig `json:"mux"` Router RouterConfig `json:"router"` Websocket WebsocketConfig `json:"websocket"` LocalAddr net.Addr LocalIP net.IP RemoteAddr net.Addr RemoteIP net.IP Hash map[string]string }
func ParseJSON ¶
func ParseJSON(data []byte) (*GlobalConfig, error)
type MySQLConfig ¶ added in v0.0.3
type RouterConfig ¶ added in v0.0.16
type RouterConfig struct { Enabled bool `json:"enabled"` Bypass []string `json:"bypass"` Proxy []string `json:"proxy"` Block []string `json:"block"` DefaultPolicy string `json:"default_policy"` RouteByIP bool `json:"route_by_ip"` RouteByIPOnNonmatch bool `json:"route_by_ip_on_nonmatch"` GeoIPFilename string `json:"geoip"` GeoSiteFilename string `json:"geosite"` BypassList []byte ProxyList []byte BlockList []byte GeoIP []byte BypassIPCode []string ProxyIPCode []string BlockIPCode []string GeoSite []byte BypassSiteCode []string ProxySiteCode []string BlockSiteCode []string }
type SQLiteConfig ¶ added in v0.0.6
type TLSConfig ¶
type TLSConfig struct { Verify bool `json:"verify"` VerifyHostname bool `json:"verify_hostname"` CertPath string `json:"cert"` KeyPath string `json:"key"` KeyPassword string `json:"key_password"` Cipher string `json:"cipher"` CipherTLS13 string `json:"cipher_tls13"` PreferServerCipher bool `json:"prefer_server_cipher"` SNI string `json:"sni"` HTTPFile string `json:"plain_http_response"` FallbackPort int `json:"fallback_port"` FallbackAddr net.Addr CertPool *x509.CertPool KeyPair []tls.Certificate HTTPResponse []byte CipherSuites []uint16 CipherSuiteTLS13 []uint16 ReuseSession bool SessionTicket bool Curves string }
Click to show internal directories.
Click to hide internal directories.