Help us shape the future of Go! Take the 2026 Go Developer Survey

monitor

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: GPL-3.0 Imports: 12 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