Documentation
¶
Overview ¶
router package is used to setup routes also actively monitores direct and (sdn) wireguard peers and setups best routing path
Index ¶
- type Router
- func (r *Router) Apply() ([]*routestatus.Connection, []*peeradata.Entry)
- func (r *Router) Close() error
- func (r *Router) Collect(ch chan<- prometheus.Metric)
- func (r *Router) Describe(ch chan<- *prometheus.Desc)
- func (r *Router) Flush()
- func (r *Router) HasRoute(ip netip.Prefix) bool
- func (r *Router) PeerAdd(netpath *common.SdnNetworkPath) error
- func (r *Router) PeerDel(netpath *common.SdnNetworkPath) error
- func (r *Router) PingProcess(pr *multiping.PingData)
- func (r *Router) RouteAdd(netpath *common.SdnNetworkPath, dest ...netip.Prefix) error
- func (r *Router) RouteDel(netpath *common.SdnNetworkPath, ips ...netip.Prefix) error
- func (r *Router) ServiceAdd(netpath *common.SdnNetworkPath, destination netip.Prefix) error
- func (r *Router) ServiceDel(netpath *common.SdnNetworkPath, destination netip.Prefix) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
func (*Router) Apply ¶
func (r *Router) Apply() ([]*routestatus.Connection, []*peeradata.Entry)
func (*Router) Collect ¶
func (r *Router) Collect(ch chan<- prometheus.Metric)
func (*Router) Describe ¶
func (r *Router) Describe(ch chan<- *prometheus.Desc)
func (*Router) PingProcess ¶
func (*Router) ServiceAdd ¶
func (*Router) ServiceDel ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.