Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidDomain means insert domain is invalid ErrInvalidDomain = errors.New("invalid domain") )
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Data interface{} // contains filtered or unexported fields }
Node is the trie's node
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
Trie contains the main logic for adding and searching nodes for domain segments. support wildcard domain (e.g *.google.com)
Click to show internal directories.
Click to hide internal directories.