Documentation ¶
Overview ¶
Package job provides functionality for registering and managing scheduled jobs in the application. It includes various monitoring and maintenance tasks that run on a regular basis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(logger *logger.Manager, redis map[string]*redis.Manager, db map[string]*gorm.DB, feishu *feishu.Manager, s *schedule.Schedule)
Register sets up and schedules all the jobs for the application.
Parameters:
- logger: A pointer to the logger.Manager for logging purposes.
- redis: A map of Redis managers, keyed by their names.
- db: A map of GORM database connections, keyed by their names.
- feishu: A pointer to the Feishu manager for Feishu-related operations.
- s: A pointer to the schedule.Schedule instance for job scheduling.
This function initializes various monitoring jobs and adds them to the scheduler. Currently, it sets up an IP monitor job that runs every 5 minutes without overlapping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.