router

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

router package is used to setup routes also actively monitores direct and (sdn) wireguard peers and setups best routing path

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(w io.Writer) *Router

func (*Router) Apply

func (r *Router) Apply() ([]*routestatus.Connection, []*peeradata.Entry)

func (*Router) Close

func (r *Router) Close() error

func (*Router) Collect

func (r *Router) Collect(ch chan<- prometheus.Metric)

func (*Router) Describe

func (r *Router) Describe(ch chan<- *prometheus.Desc)

func (*Router) Flush

func (r *Router) Flush()

func (*Router) HasRoute

func (r *Router) HasRoute(ip netip.Prefix) bool

func (*Router) PeerAdd

func (r *Router) PeerAdd(netpath *common.SdnNetworkPath) error

func (*Router) PeerDel

func (r *Router) PeerDel(netpath *common.SdnNetworkPath) error

func (*Router) PingProcess

func (r *Router) PingProcess(pr *multiping.PingData)

func (*Router) RouteAdd

func (r *Router) RouteAdd(netpath *common.SdnNetworkPath, dest ...netip.Prefix) error

func (*Router) RouteDel

func (r *Router) RouteDel(netpath *common.SdnNetworkPath, ips ...netip.Prefix) error

func (*Router) ServiceAdd

func (r *Router) ServiceAdd(netpath *common.SdnNetworkPath, destination netip.Prefix) error

func (*Router) ServiceDel

func (r *Router) ServiceDel(netpath *common.SdnNetworkPath, destination netip.Prefix) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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