Add tlsconmon component

This commit is contained in:
2025-05-24 02:11:35 +02:00
parent e40cfed4f0
commit 4a31b9fc4b
5 changed files with 215 additions and 3 deletions

View File

@@ -12,9 +12,18 @@ type StepMonitor struct {
RootID string `toml:"RootID"`
}
type TLSConnectionMonitor struct {
Enabled bool `toml:"Enabled"`
Address string `toml:"Address"`
Verify bool `toml:"Verify"`
ExtraCAPaths []string `toml:"ExtraCAPaths"`
Duration string `toml:"Duration"`
}
type Config struct {
ListenAddr string `toml:"ListenAddr"`
StepMonitors []StepMonitor `toml:"StepMonitors"`
ListenAddr string `toml:"ListenAddr"`
StepMonitors []StepMonitor `toml:"StepMonitors"`
TLSConnectionMonitors []TLSConnectionMonitor `toml:"TLSConnectionMonitors"`
}
func FromFile(file string) (*Config, error) {