job

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 6 Imported by: 0

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.

Directories

Path Synopsis
Package monitor provides monitoring functionalities for various system aspects.
Package monitor provides monitoring functionalities for various system aspects.

Jump to

Keyboard shortcuts

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