pollers

package
v0.0.266 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.0.252

type Interface struct {
	babel.Interface
	Best net.IP
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(
	ctx context.Context,
	config *config.Config,
	routes ***xsync.MapOf[string, string],
	hosts *xsync.MapOf[string, string],
	services *xsync.MapOf[string, string],
	broadcastChan chan arednlink.Message,
) *Manager

func (*Manager) Start

func (m *Manager) Start()

func (*Manager) Stop

func (m *Manager) Stop()

type NeighborhoodPoller

type NeighborhoodPoller struct {
	// contains filtered or unexported fields
}

func (*NeighborhoodPoller) Name added in v0.0.250

func (p *NeighborhoodPoller) Name() string

func (*NeighborhoodPoller) Poll

func (p *NeighborhoodPoller) Poll() error

func (*NeighborhoodPoller) PollRate

func (p *NeighborhoodPoller) PollRate() time.Duration

type Poller

type Poller interface {
	Poll() error
	PollRate() time.Duration
	Name() string
}

type Route

type Route struct {
	Destination   net.IPNet
	Gateway       net.IP
	OutboundIface string
}

type RoutePoller

type RoutePoller struct {
	// contains filtered or unexported fields
}

func NewRoutePoller added in v0.0.236

func NewRoutePoller(
	config *config.Config,
	routes ***xsync.MapOf[string, string],
	hosts *xsync.MapOf[string, string],
	services *xsync.MapOf[string, string],
	broadcastChan chan arednlink.Message,
) *RoutePoller

func (*RoutePoller) Name added in v0.0.250

func (p *RoutePoller) Name() string

func (*RoutePoller) Poll

func (p *RoutePoller) Poll() error

func (*RoutePoller) PollRate

func (p *RoutePoller) PollRate() time.Duration

Jump to

Keyboard shortcuts

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