Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartMonitoring ¶
func StartMonitoring(cfg MonitorConfig) error
StartMonitoring initializes MySQL and Redis checkers and starts their monitoring.
Types ¶
type MonitorConfig ¶
type MonitorConfig struct { MySQLConfig db.MySQLConfig RedisConfig db.RedisConfig MonitorCtx context.Context MonitorLimit time.Duration // Optional duration to control how long monitoring runs }
MonitorConfig contains the configuration for monitoring multiple services.
Click to show internal directories.
Click to hide internal directories.