status

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailBody

func EmailBody(s *config.Status, alerts map[string]bool, systemAlerts []string) string

EmailBody creates the email body from the status access to status must be protected by a lock held by the calling function

func NewReport

func NewReport(now time.Time) config.Report

func Run

func Run(ctx context.Context, j *jc.Status, r *rc.Status, s *config.Status)

Run handles connecting to book, jump, relay and updating status jc.Status and rc.Status clients are passed in to allow mocking during testing

Types

type StatusUpdate added in v0.1.3

type StatusUpdate struct {
	UpdateFunc func(*config.Status)
}

Jump to

Keyboard shortcuts

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