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 ¶
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.
Click to show internal directories.
Click to hide internal directories.