Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
KeyBits uint // total key length in bits (32 for IPv4, 128 for IPv6, etc.)
Stride uint // bits per subdivision level (default: 8)
CompSize int // pctrie compression factor (default: 2)
TrieDepth uint // number of stride-levels covered by direct trie (default: 2)
}
Config holds the parameters for a FlashTrie.
type FLTrie ¶
type FLTrie[K, V any] struct { // contains filtered or unexported fields }
FLTrie represents flash trie structure.
func (*FLTrie[K, V]) Add ¶
Add adds new route into unbuilt flash trie. Given route must be in binary regex format e.g. *, 11*.
func (*FLTrie[K, V]) All ¶
All returns an iterator over all (prefix, value) pairs stored in the trie.
Click to show internal directories.
Click to hide internal directories.