agent

package
v0.0.0-...-b19e04c Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 84 Imported by: 0

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

func StartReloadManager(configFilesFromFlag []string, reloadDisabled bool)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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