Versions in this module Expand all Collapse all v0 v0.1.1 Apr 6, 2023 v0.1.0 Apr 6, 2023 Changes in this version + var ErrTimeout = errors.New("probe timed out") + func PGWithCA(ca []byte) func(*pgxpool.Config) error + type Manager struct + func NewManager(l logr.Logger) Manager + func (m Manager) Collector() prometheus.Collector + func (m Manager) StartProbe(p Prober) + func (m Manager) StopProbe(pi ProbeInfo) + type PostgreSQL struct + Instance string + Namespace string + Service string + func NewFailingPostgreSQL(service, name, namespace string) (*PostgreSQL, error) + func NewPostgreSQL(service, name, namespace, dsn string, ops ...func(*pgxpool.Config) error) (*PostgreSQL, error) + func (p PostgreSQL) Close() error + func (p PostgreSQL) GetInfo() ProbeInfo + func (p PostgreSQL) Probe(ctx context.Context) error + type ProbeInfo struct + Name string + Namespace string + Service string + type Prober interface + Close func() error + GetInfo func() ProbeInfo + Probe func(ctx context.Context) error