Documentation ¶
Overview ¶
Package fib implements the Forwarding Information Base.
Index ¶
- Variables
- type Entry
- type Fib
- func (fib *Fib) Close() (e error)
- func (fib *Fib) Erase(name ndn.Name) (e error)
- func (fib *Fib) Find(name ndn.Name) *Entry
- func (fib *Fib) Insert(entry fibdef.Entry) (e error)
- func (fib *Fib) Len() int
- func (fib *Fib) List() (list []Entry)
- func (fib *Fib) Replica(socket eal.NumaSocket) *fibreplica.Table
- type LookupThread
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GqlEntryCountersType graphql.Type GqlEntryNodeType *gqlserver.NodeType GqlEntryType *graphql.Object )
GraphQL types.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
Entry represents a FIB entry.
func (*Entry) Counters ¶
func (entry *Entry) Counters() (cnt fibdef.EntryCounters)
Counters retrieves counters, aggregated across all replicas and lookup threads.
type Fib ¶
type Fib struct {
// contains filtered or unexported fields
}
Fib represents a Forwarding Information Base (FIB).
var ( // GqlFib is the FIB instance accessible via GraphQL. GqlFib *Fib // GqlDefaultStrategy is the default strategy when inserted a FIB entry via GraphQL. GqlDefaultStrategy *strategycode.Strategy )
func (*Fib) Replica ¶
func (fib *Fib) Replica(socket eal.NumaSocket) *fibreplica.Table
Replica returns replica on specified NUMA socket.
type LookupThread ¶
type LookupThread interface { eal.WithNumaSocket SetFib(replica unsafe.Pointer, i int) }
LookupThread represents an entity that can perform FIB lookups, such as a forwarding thread.
Directories ¶
Path | Synopsis |
---|---|
Package fibdef declares common data structures for FIB.
|
Package fibdef declares common data structures for FIB. |
Package fibreplica controls a FIB replica in C.Fib struct.
|
Package fibreplica controls a FIB replica in C.Fib struct. |
Package fibtestenv provides utilities for FIB unit tests.
|
Package fibtestenv provides utilities for FIB unit tests. |
Package fibtree organizes logical FIB entries in a name hierarchy.
|
Package fibtree organizes logical FIB entries in a name hierarchy. |
Click to show internal directories.
Click to hide internal directories.