Documentation
¶
Index ¶
Constants ¶
This section is empty.
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 { Type TunnelType `json:"type"` Policy string `json:"policy"` 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 TunnelType `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"` }
type TunnelType ¶ added in v1.26.0
type TunnelType string
const ( TunGRPC TunnelType = "grpc" TunQUIC TunnelType = "quic" )
Click to show internal directories.
Click to hide internal directories.