caas-team / sparrow

A monitoring tool to gather infrastructure network information
Apache License 2.0
6 stars 4 forks source link

feat: load check config on startup #115

Closed lvlcn-t closed 3 months ago

lvlcn-t commented 4 months ago

Motivation

Partly addresses the conversation of #79 to instantly trigger the config load on sparrow startup.

Changes

I've added the initial startup config load and refactored the http loader to return the runtime config per value instead of reference to avoid sending a nil pointer through the channel.

For additional information look at the commits.

Tests done

I've provided some unit tests for the initial config load.

TODO