Documentation
¶
Index ¶
- type Config
- func (c *Config) AddSniffDomain(domain string)
- func (c *Config) GetProxyPort() string
- func (c *Config) GetProxyServerURL() string
- func (c *Config) GetSniffDomains() []string
- func (c *Config) IsSniffDomain(domain string) bool
- func (c *Config) RemoveSniffDomain(domain string)
- func (c *Config) SetProxyPort(port string)
- func (c *Config) SetProxyServerURL(url string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Adapter name Adapter string // List of domains to sniff SniffDomains map[string]bool // Proxy server port ProxyPort string // Upstream proxy server URL (http://user:pass@host:port, socks5://user:pass@host:port, etc.) ProxyServerURL string // contains filtered or unexported fields }
Config stores application configuration
func (*Config) AddSniffDomain ¶
AddSniffDomain adds a domain to the sniff list
func (*Config) GetProxyPort ¶
GetProxyPort gets the proxy port
func (*Config) GetProxyServerURL ¶
GetProxyServerURL gets the proxy server URL
func (*Config) GetSniffDomains ¶
GetSniffDomains returns all domains in the sniff list
func (*Config) IsSniffDomain ¶
IsSniffDomain checks if a domain should be sniffed
func (*Config) RemoveSniffDomain ¶
RemoveSniffDomain removes a domain from the sniff list
func (*Config) SetProxyPort ¶
SetProxyPort sets the proxy port
func (*Config) SetProxyServerURL ¶
SetProxyServerURL sets the proxy server URL
Click to show internal directories.
Click to hide internal directories.