Documentation ¶
Index ¶
- func HasNoResolve(params []string) bool
- func ParseRule(tp, payload, target string, params []string) (C.Rule, error)
- type AllIP
- type Domain
- type DomainAndPort
- func (d *DomainAndPort) Adapter() string
- func (d *DomainAndPort) Match(metadata *C.Metadata) bool
- func (d *DomainAndPort) MatchDomain(metadata *C.Metadata) bool
- func (d *DomainAndPort) MatchPort(metadata *C.Metadata) bool
- func (d *DomainAndPort) Payload() string
- func (d *DomainAndPort) RuleType() C.RuleType
- func (d *DomainAndPort) ShouldResolveIP() bool
- type DomainKeyword
- type DomainSuffix
- type GEOIP
- type IPCIDR
- type IPCIDROption
- type Match
- type Port
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasNoResolve ¶
Types ¶
type AllIP ¶
type AllIP struct {
// contains filtered or unexported fields
}
func (*AllIP) ShouldResolveIP ¶
type Domain ¶
type Domain struct {
// contains filtered or unexported fields
}
func (*Domain) ShouldResolveIP ¶
type DomainAndPort ¶
type DomainAndPort struct {
// contains filtered or unexported fields
}
func NewDomainAndPort ¶
func NewDomainAndPort(domain string, adapter string, port string, isSource bool) *DomainAndPort
func (*DomainAndPort) Adapter ¶
func (d *DomainAndPort) Adapter() string
func (*DomainAndPort) MatchDomain ¶
func (d *DomainAndPort) MatchDomain(metadata *C.Metadata) bool
func (*DomainAndPort) Payload ¶
func (d *DomainAndPort) Payload() string
func (*DomainAndPort) RuleType ¶
func (d *DomainAndPort) RuleType() C.RuleType
func (*DomainAndPort) ShouldResolveIP ¶
func (d *DomainAndPort) ShouldResolveIP() bool
type DomainKeyword ¶
type DomainKeyword struct {
// contains filtered or unexported fields
}
func NewDomainKeyword ¶
func NewDomainKeyword(keyword string, adapter string) *DomainKeyword
func (*DomainKeyword) Adapter ¶
func (dk *DomainKeyword) Adapter() string
func (*DomainKeyword) Payload ¶
func (dk *DomainKeyword) Payload() string
func (*DomainKeyword) RuleType ¶
func (dk *DomainKeyword) RuleType() C.RuleType
func (*DomainKeyword) ShouldResolveIP ¶
func (dk *DomainKeyword) ShouldResolveIP() bool
type DomainSuffix ¶
type DomainSuffix struct {
// contains filtered or unexported fields
}
func NewDomainSuffix ¶
func NewDomainSuffix(suffix string, adapter string) *DomainSuffix
func (*DomainSuffix) Adapter ¶
func (ds *DomainSuffix) Adapter() string
func (*DomainSuffix) Payload ¶
func (ds *DomainSuffix) Payload() string
func (*DomainSuffix) RuleType ¶
func (ds *DomainSuffix) RuleType() C.RuleType
func (*DomainSuffix) ShouldResolveIP ¶
func (ds *DomainSuffix) ShouldResolveIP() bool
type GEOIP ¶
type GEOIP struct {
// contains filtered or unexported fields
}
func (*GEOIP) ShouldResolveIP ¶
type IPCIDR ¶
type IPCIDR struct {
// contains filtered or unexported fields
}
func (*IPCIDR) ShouldResolveIP ¶
type IPCIDROption ¶
type IPCIDROption func(*IPCIDR)
func WithDstPort ¶
func WithDstPort(port string) IPCIDROption
func WithIPCIDRNoResolve ¶
func WithIPCIDRNoResolve(noResolve bool) IPCIDROption
func WithIPCIDRSourceIP ¶
func WithIPCIDRSourceIP(b bool) IPCIDROption
type Match ¶
type Match struct {
// contains filtered or unexported fields
}
func (*Match) ShouldResolveIP ¶
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
func (*Port) ShouldResolveIP ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func (*Process) ShouldResolveIP ¶
Click to show internal directories.
Click to hide internal directories.