1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2025-07-12 23:50:14 +02:00
Files
ssl_exporter/prober/prober.go

21 lines
442 B
Go
Raw Normal View History

package prober
import (
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/ribbybibby/ssl_exporter/config"
)
var (
// Probers maps a friendly name to a corresponding probe function
Probers = map[string]ProbeFn{
"https": ProbeHTTPS,
"http": ProbeHTTPS,
"tcp": ProbeTCP,
}
)
// ProbeFn probes
type ProbeFn func(target string, module config.Module, timeout time.Duration, registry *prometheus.Registry) error