Documentation
¶
Index ¶
Constants ¶
View Source
const ( TunGRPC = "grpc" TunQUIC = "quic" )
tunnel type
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SOCKSListen string `json:"socksListen,omitempty"` HTTPListen string `json:"httpListen,omitempty"` TunnelListens []TunnelListen `json:"tunnelListens,omitempty"` TunnelClients []TunnelClient `json:"tunnelClients,omitempty"` Rules []string `json:"rules,omitempty"` // developer only: enable debug logging, start HTTP server for profiling Debug bool `json:"debug,omitempty"` }
type TunnelClient ¶ added in v1.26.0
type TunnelClient struct { Policy string `json:"policy"` Type string `json:"type"` Address string `json:"address"` // target server address CertFile string `json:"certFile,omitempty"` CertPEM Lines `json:"certPEM,omitempty"` KeyFile string `json:"keyFile,omitempty"` KeyPEM Lines `json:"keyPEM,omitempty"` CAFile string `json:"caFile,omitempty"` CAPEM Lines `json:"caPEM,omitempty"` PoolSize int `json:"poolSize,omitempty"` }
type TunnelListen ¶ added in v1.26.0
type TunnelListen struct { Type string `json:"type"` Listen string `json:"listen"` CertFile string `json:"certFile,omitempty"` CertPEM Lines `json:"certPEM,omitempty"` KeyFile string `json:"keyFile,omitempty"` KeyPEM Lines `json:"keyPEM,omitempty"` CAFile string `json:"caFile,omitempty"` CAPEM Lines `json:"caPEM,omitempty"` }
Click to show internal directories.
Click to hide internal directories.