Documentation
¶
Index ¶
- func EncodeLPMKey(data []byte, prefixLen PrefixLen) index.Key
- func NetIPPrefix4ToIndexKey(prefix netip.Prefix) index.Key
- func NetIPPrefixToIndexKey(prefix netip.Prefix) index.Key
- type Iterator
- type PrefixLen
- type Trie
- 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
- 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]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.