Versions in this module Expand all Collapse all v0 v0.0.2 Apr 19, 2025 Changes in this version + type MySQLStats struct + ActiveConnections int + Connections int + Questions int64 + SlowQueries int64 + ThreadsConnected int + ThreadsRunning int + Uptime int64 + type RedisStats struct + ConnectedClients int64 + KeyspaceHitRatio float64 + KeyspaceHits int64 + KeyspaceMisses int64 + MaxMemory int64 + MaxMemoryHuman string + MemFragmentationRatio float64 + OpsPerSecond int64 + RejectedConnections int64 + ReplBacklogSize int64 + TotalConnections int64 + TotalKeys int64 + UptimeInSeconds int64 + UsedCpuSys float64 + UsedCpuUser float64 + UsedMemory int64 + UsedMemoryHuman string v0.0.1 Apr 19, 2025 Changes in this version + type MySQLChecker struct + func NewMySQLChecker(cfg MySQLConfig) (*MySQLChecker, error) + func (m *MySQLChecker) Check() (bool, string) + func (m *MySQLChecker) GetCtx() context.Context + func (m *MySQLChecker) GetDB() *sql.DB + func (m *MySQLChecker) GetHeartbeat() time.Duration + func (m *MySQLChecker) Name() string + func (m *MySQLChecker) StartMonitoring() + func (m *MySQLChecker) Stop() + type MySQLConfig struct + Ctx context.Context + DSN string + Heartbeat time.Duration + Logging bool + MonitorResources bool + Name string + Password string + Username string + type RedisChecker struct + func NewRedisChecker(cfg RedisConfig) *RedisChecker + func (r *RedisChecker) Check() (bool, string) + func (r *RedisChecker) GetClient() *redis.Client + func (r *RedisChecker) GetCtx() context.Context + func (r *RedisChecker) GetHeartbeat() time.Duration + func (r *RedisChecker) Name() string + func (r *RedisChecker) StartMonitoring() + func (r *RedisChecker) Stop() + type RedisConfig struct + Addr string + Ctx context.Context + DB int + Heartbeat time.Duration + Logging bool + MonitorResources bool + Name string + Password string + Username string