Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainMapper ¶
DomainMapper returns domain metadata for an address.
type FlowController ¶
FlowController validates whether a packet can be sent.
type Manager ¶
type Manager interface {
ResolveRoute(packet *core.Packet, sourceID int, defaultTarget int) (int, error)
CheckFlowControl(packet *core.Packet, sourceID int, targetID int) error
DomainOf(addr uint64) string
}
Manager coordinates routing, flow control, and domain lookups.
func NewDefaultManager ¶
func NewDefaultManager() Manager
NewDefaultManager creates a manager with permissive defaults.
func WithDomainMapper ¶
func WithDomainMapper(m Manager, dm DomainMapper) Manager
WithDomainMapper returns a copy using the provided domain mapper.
func WithFlowController ¶
func WithFlowController(m Manager, fc FlowController) Manager
WithFlowController returns a copy using the provided flow controller.
func WithRouter ¶
WithRouter returns a copy of the manager using the provided router.
Click to show internal directories.
Click to hide internal directories.