Documentation
¶
Index ¶
- func IsContainsDomain(domain string, s string) bool
- func IsDomainMatchRule(pattern string, domain string) bool
- func IsDomainsContain(items []string, value string) bool
- func IsSubnetContainsIp(s string, i string) bool
- type Cache
- type Config
- type DnsDistribution
- type IpDistribution
- type IpMatcher
- type MatcherList
- type SubDnsDistribution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsContainsDomain ¶
func IsDomainMatchRule ¶
func IsDomainsContain ¶
func IsSubnetContainsIp ¶
Types ¶
type Config ¶
type Config struct { Dns DnsDistribution Ip IpDistribution TrueProxyServer string // contains filtered or unexported fields }
type DnsDistribution ¶
type DnsDistribution struct { Local SubDnsDistribution Remote SubDnsDistribution Cache Cache }
func NewDnsDistribution ¶
func NewDnsDistribution( config configuration.DnsItem, ) (DnsDistribution, error)
type IpDistribution ¶
type IpDistribution struct { Subnet IpMatcher GeoIps IpMatcher GeoSites IpMatcher Cache Cache DefaultProxy bool }
func NewIpDistribution ¶
func NewIpDistribution( config configuration.IpItem, ) (IpDistribution, error)
type MatcherList ¶
type SubDnsDistribution ¶
type SubDnsDistribution struct { Domains MatcherList GeoSites MatcherList Address string Client resolver.Client }
Click to show internal directories.
Click to hide internal directories.