Documentation
¶
Overview ¶
@Time : 2021/3/9 4:07 PM @Author : charley @File : Address
@Time : 2021/3/9 4:26 PM @Author : charley @File : address_keyword
@Time : 2021/3/9 4:26 PM @Author : charley @File : address_suffix
@Time : 2021/3/9 4:05 PM @Author : charley @File : domain
@Time : 2021/3/9 4:06 PM @Author : charley @File : domain_keyword
@Time : 2021/3/9 3:57 PM @Author : charley @File : domain_suffix
@Time : 2021/3/9 5:30 PM @Author : charley @File : parser
@Time : 2021/3/9 4:51 PM @Author : charley @File : rules_group
Index ¶
- func ParseClashRule(ruleLine string, remoteDnsServer constant.RemoteDnsServer) (constant.Rule, error)
- func ParseDnsmasqRule(ruleLine string, remoteDnsServer constant.RemoteDnsServer) (constant.Rule, error)
- func ParseRule(ruleLine string, remoteDnsServers map[string]constant.RemoteDnsServer) (constant.Rule, error)
- type Address
- type AddressKeyword
- type AddressSuffix
- type Domain
- type DomainKeyword
- type DomainSuffix
- type RuleList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseClashRule ¶
func ParseDnsmasqRule ¶
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func NewAddress ¶
func NewAddress(domain string, remoteServer constant.RemoteDnsServer) *Address
func (*Address) RemoteServer ¶
func (addr *Address) RemoteServer() constant.RemoteDnsServer
type AddressKeyword ¶
type AddressKeyword struct {
// contains filtered or unexported fields
}
func NewAddressKeyword ¶
func NewAddressKeyword(keyword string, remoteServer constant.RemoteDnsServer) *AddressKeyword
func (*AddressKeyword) Payload ¶
func (ak *AddressKeyword) Payload() string
func (*AddressKeyword) RemoteServer ¶
func (ak *AddressKeyword) RemoteServer() constant.RemoteDnsServer
func (*AddressKeyword) RuleType ¶
func (ak *AddressKeyword) RuleType() constant.RuleType
type AddressSuffix ¶
type AddressSuffix struct {
// contains filtered or unexported fields
}
func NewAddressSuffix ¶
func NewAddressSuffix(suffix string, remoteServer constant.RemoteDnsServer) *AddressSuffix
func (*AddressSuffix) Payload ¶
func (as *AddressSuffix) Payload() string
func (*AddressSuffix) RemoteServer ¶
func (as *AddressSuffix) RemoteServer() constant.RemoteDnsServer
func (*AddressSuffix) RuleType ¶
func (as *AddressSuffix) RuleType() constant.RuleType
type Domain ¶
type Domain struct {
// contains filtered or unexported fields
}
func (*Domain) RemoteServer ¶
func (d *Domain) RemoteServer() constant.RemoteDnsServer
type DomainKeyword ¶
type DomainKeyword struct {
// contains filtered or unexported fields
}
func NewDomainKeyword ¶
func NewDomainKeyword(keyword string, remoteServer constant.RemoteDnsServer) *DomainKeyword
func (*DomainKeyword) Payload ¶
func (dk *DomainKeyword) Payload() string
func (*DomainKeyword) RemoteServer ¶
func (dk *DomainKeyword) RemoteServer() constant.RemoteDnsServer
func (*DomainKeyword) ResultIPAddress ¶
func (dk *DomainKeyword) ResultIPAddress() string
func (*DomainKeyword) RuleType ¶
func (dk *DomainKeyword) RuleType() constant.RuleType
type DomainSuffix ¶
type DomainSuffix struct {
// contains filtered or unexported fields
}
func NewDomainSuffix ¶
func NewDomainSuffix(suffix string, remoteServer constant.RemoteDnsServer) *DomainSuffix
func (*DomainSuffix) Payload ¶
func (ds *DomainSuffix) Payload() string
func (*DomainSuffix) RemoteServer ¶
func (ds *DomainSuffix) RemoteServer() constant.RemoteDnsServer
func (*DomainSuffix) RuleType ¶
func (ds *DomainSuffix) RuleType() constant.RuleType
type RuleList ¶
type RuleList struct {
// contains filtered or unexported fields
}
func (*RuleList) AddressRules ¶
func (*RuleList) ServerRules ¶
Click to show internal directories.
Click to hide internal directories.