monitor

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: 9 Imported by: 0

Documentation

Overview

Package monitor provides monitoring functionalities for various system aspects. It includes jobs for monitoring IP changes and other system metrics.

Index

Constants

View Source
const (
	// CheckCNIpApi is the API endpoint for checking the IP address (Chinese server)
	CheckCNIpApi = "http://members.3322.org/dyndns/getip"
	// CheckIpApi is an alternative API endpoint for checking the IP address
	CheckIpApi = "http://whatismyip.akamai.com/"
)

Variables

This section is empty.

Functions

func NewIpMonitor

func NewIpMonitor(logger *logger.Manager, redis *redis.Manager) schedule.HandlerFunc

NewIpMonitor creates and returns a new IP monitor handler.

Parameters:

  • logger: A pointer to the logger.Manager for logging purposes.
  • redis: A pointer to the redis.Manager for Redis operations.

Returns:

  • schedule.HandlerFunc: A handler function that can be scheduled for execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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