config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func LoadConfig(filePath string) (*Config, error)

LoadConfig loads configuration from a YAML file.

func (*Config) Validate

func (c *Config) Validate() error

Validate checks that each heartbeat references an existing receiver and validates and resolves secrets in receiver configurations.

Jump to

Keyboard shortcuts

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