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 uint16 `json:"local_port"` RemoteHost string `json:"remote_addr"` RemotePort uint16 `json:"remote_port"` Passwords []string `json:"password"` TLS TLSConfig `json:"ssl"` TCP TCPConfig `json:"tcp"` MySQL MySQLConfig `json:"mysql"` SQLite SQLiteConfig `json:"sqlite"` 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 SQLiteConfig ¶ added in v0.0.6
type TCPConfig ¶
type TCPConfig struct { PreferIPV4 bool `json:"prefer_ipv4"` KeepAlive bool `json:"keep_alive"` FastOpen bool `json:"fast_open"` FastOpenQLen int `json:"fast_open_qlen"` ReusePort bool `json:"reuse_port"` NoDelay bool `json:"no_delay"` Mux bool `json:"mux"` MuxIdleTimeout int `json:"mux_idle_timeout"` }
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"` ALPN []string `json:"alpn"` ALPHPortOverride uint16 `json:"alpn_port_override"` FallbackAddr net.Addr FallbackHTTP bool FallbackHTTP2 bool 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.