Add tlsconmon component
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user