Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCachedDnsItem ¶
func ResetCache ¶ added in v0.9.2
func ResetCache()
Types ¶
type Config ¶
type Config struct { Dns DnsDistribution RuleEngine *ruleEngine.Engine }
func (Config) ConnMatcher ¶ added in v0.13.0
type DnsDistribution ¶
type DnsDistribution struct { Local SubDnsDistribution Remote SubDnsDistribution Boost SubDnsDistribution }
func NewDnsDistribution ¶
type SubDnsDistribution ¶
type SystemProxyConfig ¶ added in v0.11.0
type SystemProxyConfig struct {
RuleEngine *ruleEngine.Engine
}
func NewSystemProxy ¶ added in v0.11.0
func NewSystemProxy( ruleId string, rules []string, ) (SystemProxyConfig, error)
func (SystemProxyConfig) ConnMatcher ¶ added in v0.13.0
func (SystemProxyConfig) GetDnsType ¶ added in v0.11.0
func (c SystemProxyConfig) GetDnsType(domain string) (constants.DnsType, error)
Click to show internal directories.
Click to hide internal directories.