Versions in this module Expand all Collapse all v0 v0.6.1 Jan 27, 2026 v0.6.0 Jan 22, 2026 Changes in this version + func EncodeLPMKey(data []byte, prefixLen PrefixLen) index.Key + func NetIPPrefix4ToIndexKey(prefix netip.Prefix) index.Key + func NetIPPrefixToIndexKey(prefix netip.Prefix) index.Key + type Iterator struct + func (it *Iterator[T]) All(yield func([]byte, T) bool) + func (it *Iterator[T]) Next() (key []byte, value T, ok bool) + type PrefixLen = uint16 + func DecodeLPMKey(key index.Key) (data []byte, prefixLen PrefixLen) + type Trie struct + func New[T any]() Trie[T] + func (l *Trie[T]) All() *Iterator[T] + func (l *Trie[T]) Len() int + func (l *Trie[T]) Lookup(key index.Key) (value T, found bool) + func (l *Trie[T]) LookupExact(key index.Key) (value T, found bool) + func (l *Trie[T]) LowerBound(key index.Key) *Iterator[T] + func (l *Trie[T]) Prefix(key index.Key) *Iterator[T] + func (l *Trie[T]) Print() + func (l *Trie[T]) Txn() *Txn[T] + type Txn struct + func (txn *Txn[T]) All() *Iterator[T] + func (txn *Txn[T]) Clear() + func (txn *Txn[T]) Commit() Trie[T] + func (txn *Txn[T]) Delete(key index.Key) (value T, found bool) + func (txn *Txn[T]) Insert(key index.Key, value T) error + func (txn *Txn[T]) Len() int + func (txn *Txn[T]) Lookup(key index.Key) (value T, found bool) + func (txn *Txn[T]) LookupExact(key index.Key) (value T, found bool) + func (txn *Txn[T]) LowerBound(key index.Key) *Iterator[T] + func (txn *Txn[T]) Prefix(key index.Key) *Iterator[T] + func (txn *Txn[T]) Reuse(trie Trie[T]) *Txn[T]