daemons

package
v0.0.0-...-f143412 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: AGPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertPoller

func AlertPoller(ctx context.Context) error

AlertPoller polls the NWS API for new alerts and, when found, pushes them to a PDS, which will then be pulled via the firehose and stored in the DB and published as skeets

func AreDaemonsHealthy

func AreDaemonsHealthy() bool

func FirehoseNozzle

func FirehoseNozzle(ctx context.Context) error

func HTTPServerDaemon

func HTTPServerDaemon(ctx context.Context) error

HTTPServerDaemon runs the HTTP APIs for WatchedSky, including the front end, REST APIs, and feed generators

func StartDaemon

func StartDaemon(ctx context.Context, name string, daemon Daemon)

Types

type Daemon

type Daemon func(context.Context) error

Daemon is a func that should be run as goroutines

Jump to

Keyboard shortcuts

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