Documentation ¶
Overview ¶
Package agent contains the glue between other components
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, reloadState ReloadState, configFiles []string, signalChan chan os.Signal, firstRun bool)
Run runs Glouton.
func StartReloadManager ¶
StartReloadManager starts the agent with a config file watcher, the agent is reloaded when a change is detected and the config is valid.
Types ¶
type ReloadState ¶
type ReloadState interface { Bleemeo() bleemeoTypes.BleemeoReloadState MQTT() types.MQTTReloadState DiagnosticArchive(ctx context.Context, archive types.ArchiveWriter) error WatcherError() error Close() }
ReloadState is used to keep some components alive during reloads.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.