Versions in this module Expand all Collapse all v0 v0.12.2 Mar 18, 2021 Changes in this version + const Subsystem + func AvailableDiskSpace(path string) (uint64, error) + func AvailableDiskSpaceRatio(path string) (float64, error) + func CreateCheck(checkFunc func() error) func() chan error + func DisableLog() + func UseLogger(logger btclog.Logger) + type Config struct + Checks []*Observation + Shutdown shutdownFunc + type Monitor struct + func NewMonitor(cfg *Config) *Monitor + func (m *Monitor) Start() error + func (m *Monitor) Stop() error + type Observation struct + Attempts int + Backoff time.Duration + Check func() chan error + Interval ticker.Ticker + Name string + Timeout time.Duration + func NewObservation(name string, check func() error, interval, timeout, backoff time.Duration, ...) *Observation + func (o *Observation) String() string