Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleTree ¶
type RuleTree[T Data] struct { // contains filtered or unexported fields }
RuleTree is a trie-based filter that is capable of parsing Adblock-style and hosts rules and matching URLs against them.
The filter is safe for concurrent use.
func NewRuleTree ¶
func (*RuleTree[T]) FindMatchingRulesReq ¶
FindMatchingRulesReq finds all rules that match the given request.
func (*RuleTree[T]) FindMatchingRulesRes ¶
FindMatchingRulesRes finds all rules that match the given response. It assumes that the request that generated the response has already been matched by FindMatchingRulesReq.
Click to show internal directories.
Click to hide internal directories.