Documentation
¶
Index ¶
- func NewReloadFunc(filePath string, skipTLS bool, version string, logger *slog.Logger, ...) func() error
- func Reload(filePath string, skipTLS bool, version string, logger *slog.Logger, ...) (heartbeat.ReconcileResult, error)
- func WatchReload(ctx context.Context, reloadCh <-chan os.Signal, logger *slog.Logger, ...)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReloadFunc ¶ added in v0.20.0
func NewReloadFunc( filePath string, skipTLS bool, version string, logger *slog.Logger, dispatcher *notifier.Dispatcher, mgr *heartbeat.Manager, ) func() error
NewReloadFunc builds a reload function with logging and serialization.
Types ¶
type Config ¶
type Config struct {
Receivers map[string]notifier.ReceiverConfig `yaml:"receivers"` // Receivers is the map of receiver IDs to their configurations.
Heartbeats heartbeat.HeartbeatConfigMap `yaml:"heartbeats"` // Heartbeats is the map of heartbeat IDs to their configurations.
}
Config is the top-level configuration.
func LoadConfig ¶
LoadConfig loads configuration from a YAML file.
Click to show internal directories.
Click to hide internal directories.