monitor

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monitor

func Monitor(closed <-chan struct{}, parentwg *sync.WaitGroup, config Config)

Monitor runs a websocket relay monitor

func NewToken

func NewToken(c Config, now time.Time) (string, error)

func NewToken creates a new JWT token for the relay time is provided as a parameter to allow for easier testing

Types

type Config

type Config struct {
	Command            string
	Interval           time.Duration
	LatencyThreshold   time.Duration
	NoRetriggerWithin  time.Duration
	ReconnectEvery     time.Duration
	RelayAudience      string
	RelaySecret        string
	Topic              string
	TriggerAfterMisses int
}

Jump to

Keyboard shortcuts

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