Categorygithub.com/js-ojus/heartbeat.go
modulepackage
1.6.0
Repository: https://github.com/js-ojus/heartbeat.go.git
Documentation: pkg.go.dev

# README

heartbeat.go

A simple, but reasonably configurable heartbeat monitor.

# Functions

LoginAuth answers an `smtp.Auth` compatible authenticator.

# Constants

DefHTTPTimeoutSeconds is used in case of no specification in config.
DefMySQLTimeoutSeconds is used in case of no specification in config.
DefResolverTimeoutSeconds is used in case of no specification in config.
DefSQLServerTimeoutSeconds is used in case of no specification in config.

# Structs

Config holds the monitor's configuration.
HTTPConfig specifies configuration for `http` and `https` services.
Monitor monitors the heartbeat of the servers specified in the configuration.
MySQLConfig specifies configuration for MySQL services.
SenderConfig specifies the configuration to use for sending alerts.
Site specifies a site whose heartbeat has to be monitored.
SQLServerConfig specifies configuration for SQL Server services.