servicemon

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceMonitor

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

func New

func New(ps peermon.PathSelector, gid int) *ServiceMonitor

func (*ServiceMonitor) Add

func (sm *ServiceMonitor) Add(netpath *common.SdnNetworkPath, ip netip.Prefix) error

func (*ServiceMonitor) Apply

func (sm *ServiceMonitor) Apply() ([]*routestatus.Connection, []*peeradata.Entry)

func (*ServiceMonitor) Close

func (sm *ServiceMonitor) Close() error

func (*ServiceMonitor) Count

func (sm *ServiceMonitor) Count() int

func (*ServiceMonitor) Del

func (sm *ServiceMonitor) Del(netpath *common.SdnNetworkPath, ip netip.Prefix) error

func (*ServiceMonitor) Flush

func (sm *ServiceMonitor) Flush()

func (*ServiceMonitor) Has

func (sm *ServiceMonitor) Has(ip netip.Prefix) bool

func (*ServiceMonitor) Reroute

func (sm *ServiceMonitor) Reroute(selroute *peermon.SelectedRoute) (rv *peeradata.Entry)

Jump to

Keyboard shortcuts

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