Versions in this module Expand all Collapse all v0 v0.4.0 Dec 6, 2022 v0.3.0 Dec 5, 2022 v0.2.1 Dec 5, 2022 v0.2.0 Dec 4, 2022 v0.1.0 Dec 1, 2022 Changes in this version + type Config struct + Email *Email + Frequency string + HTTP *HTTP + LogLevel string + LogPath string + MySQL *MySQL + SecondsBehindMasterField string + SecondsBehindMasterThreshold int + SlaveIORunningField string + SlaveSQLRunningField string + func OpenConfig(path string) (*Config, error) + type Email struct + From string + Host string + InsecureSkipVerify bool + Pass string + Port int + SSL bool + StartTLS bool + Subject string + To []string + User string + type EmailNotifier struct + func NewEmailNotifier(config *Config) *EmailNotifier + func (n *EmailNotifier) Notify(err error) error + type HTTP struct + Addr string + Port int + type MySQL struct + Host string + Pass string + Port int + SocketPath string + User string + func (m *MySQL) DSN() string + type MySQLReplicationChecker struct + func NewMySQLReplicationChecker(db *sql.DB, config *Config) *MySQLReplicationChecker + func (d *MySQLReplicationChecker) Replicating() error + type Notifier interface + Notify func(error) error + type RepMon struct + func New(config *Config, replicationChecker ReplicationChecker, notifier Notifier) *RepMon + func (r *RepMon) Start() + func (r *RepMon) Stop() + type ReplicationChecker interface + Replicating func() error