Documentation
¶
Index ¶
- Variables
- type OnMatch
- type TrieNode
- func (t *TrieNode[T]) AddData(key string, data *T) error
- func (t *TrieNode[T]) Find(key string) *TrieNode[T]
- func (t *TrieNode[T]) GetMatchedData(filter string) []*T
- func (t *TrieNode[T]) MatchKey(keySlice []string, fn OnMatch[T])
- func (t *TrieNode[T]) NewChild() *TrieNode[T]
- func (t *TrieNode[T]) Remove(key string)
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidString = errors.New("InvalidString")
Functions ¶
This section is empty.
Types ¶
type TrieNode ¶
TrieNode trie Node
func (*TrieNode[T]) Find ¶
Find walk through the tire and return the node that represent the key return nil if not found
func (*TrieNode[T]) GetMatchedData ¶
func (*TrieNode[T]) MatchKey ¶
MatchKey walk through the tire and call the fn callback for each message witch match the key filter.
Click to show internal directories.
Click to hide internal directories.