Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainMatcher ¶
type DomainMatcher[T any] struct { // contains filtered or unexported fields }
func NewDomainMatcher ¶
func NewDomainMatcher[T any]() *DomainMatcher[T]
func (*DomainMatcher[T]) Add ¶
func (m *DomainMatcher[T]) Add(pattern string, value T) error
func (*DomainMatcher[T]) Find ¶
func (m *DomainMatcher[T]) Find(domain string) (matched T, exists bool)
type IPv4Trie ¶ added in v0.3.0
type IPv4Trie[T any] struct { // contains filtered or unexported fields }
func NewIPv4Trie ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.