inactivity

package
v0.59.12 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultInactivityThreshold = 15 * time.Minute
	MinimumInactivityThreshold = 1 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.50.0

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

func NewManager added in v0.50.0

func NewManager(iface WgInterface, configuredThreshold *time.Duration) *Manager

func (*Manager) AddPeer added in v0.50.0

func (m *Manager) AddPeer(peerCfg *lazyconn.PeerConfig)

func (*Manager) InactivePeersChan added in v0.50.0

func (m *Manager) InactivePeersChan() chan map[string]struct{}

func (*Manager) RemovePeer added in v0.50.0

func (m *Manager) RemovePeer(peer string)

func (*Manager) Start added in v0.50.0

func (m *Manager) Start(ctx context.Context)

type Ticker added in v0.50.0

type Ticker interface {
	C() <-chan time.Time
	Stop()
}

type WgInterface added in v0.50.0

type WgInterface interface {
	LastActivities() map[string]monotime.Time
}

Jump to

Keyboard shortcuts

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