Module config

Module config 

Source
Expand description

Configuration for the stargazer service.

Configuration is loaded from a TOML file and can be overridden by environment variables. The TOML file is divided into sections matching the service tiers:

  • [postgres] — Database connection pool settings.
  • [rdio] — Rdio API upload endpoint and retry policy.
  • [tier1] — Discovery sweep intervals for Pi-Star, XLX API, and ircDDB.
  • [tier2] — XLX UDP JSON monitor concurrency and idle thresholds.
  • [tier3] — Deep D-STAR protocol connections for voice capture.
  • [audio] — MP3 encoding parameters.
  • [server] — HTTP API bind address.

Environment variable overrides follow the STARGAZER_SECTION_FIELD pattern:

VariableOverrides
STARGAZER_POSTGRES_URLpostgres.url
STARGAZER_RDIO_ENDPOINTrdio.endpoint
STARGAZER_RDIO_API_KEYrdio.api_key
STARGAZER_TIER3_DPLUS_CALLSIGNtier3.dplus_callsign
STARGAZER_SERVER_LISTENserver.listen

Structs§

AudioConfig 🔒
Audio encoding configuration.
Config 🔒
Top-level configuration for the stargazer service.
PostgresConfig 🔒
PostgreSQL connection pool settings.
RdioConfig 🔒
Rdio API upload configuration.
ServerConfig 🔒
HTTP API server configuration.
Tier1Config 🔒
Tier 1: discovery sweep configuration.
Tier2Config 🔒
Tier 2: XLX live monitoring configuration.
Tier3Config 🔒
Tier 3: deep D-STAR protocol connection configuration.

Functions§

default_activity_threshold_secs 🔒
default_audio_format 🔒
default_auto_promote 🔒
default_dplus_callsign 🔒
default_ircddb 🔒
default_listen 🔒
default_max_concurrent_connections 🔒
default_max_concurrent_monitors 🔒
default_max_connections 🔒
default_max_retries 🔒
default_mp3_bitrate 🔒
default_pistar 🔒
default_postgres_url 🔒
default_rdio_api_key 🔒
default_rdio_endpoint 🔒
default_retry_interval_secs 🔒
default_tier2_idle_disconnect_secs 🔒
default_tier3_idle_disconnect_secs 🔒
default_xlx_api 🔒
load 🔒
Loads configuration from a TOML file, then applies environment variable overrides.