rib

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Initialize(mq <-chan []byte, n *topology.Node, rd *nac.RoutingDomain, np *topology.Policy)
	Close()
	RouteEventQueue() <-chan *RouteEvent
	RelayConnQueue() <-chan *routing.NetHop
	RouterConnQueue() <-chan *routing.NetHop
	ProxyConnQueue() <-chan *routing.NetHop
	RoutingDomain() *nac.RoutingDomain
	GetPolicy(subnetID string) *topology.Policy
	DNSQuery(dnsName string) (ipv4, ipv6 string)
	CheckIPDst(addr *netip.Addr) error
	GetNetHop(addr *netip.Addr) (*routing.NetHop, error)
	GetRelayMAddrs(nh *routing.NetHop) []string
	GetRouterMAddrs(nh *routing.NetHop) []string
	AddNodeAppSvc(as *topology.AppSvc)
	RemoveNodeAppSvc(appSvcID string)
	GetNodeAppSvcs() []*topology.AppSvc
	// contains filtered or unexported methods
}

func New

func New() Interface

type RouteEvent

type RouteEvent struct {
	Type      RouteEventType
	Addr      string
	RouteType routing.RouteType
}

type RouteEventType

type RouteEventType int
const (
	RouteEventTypeADD RouteEventType = iota
	RouteEventTypeDELETE
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL