monitor

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL