utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrentVersion = "0.0.1"
	VersionHash    = "unknown"
)

Functions

func DataMasking

func DataMasking(str string, private []string) string

func GenerateRandomString

func GenerateRandomString(length int) string

func GenerateToken

func GenerateToken() string

func GetCallbackURL

func GetCallbackURL(c *gin.Context) string

func ReloadPingSchedule

func ReloadPingSchedule(pingTasks []models.PingTask) error

ReloadPingSchedule 加载或重载时间表

Types

type PingTaskManager

type PingTaskManager struct {
	// contains filtered or unexported fields
}

PingTaskManager 管理定时器和任务

func (*PingTaskManager) Reload

func (m *PingTaskManager) Reload(pingTasks []models.PingTask) error

Reload 重载时间表

Directories

Path Synopsis
Package logger provides the server's single runtime logging surface.
Package logger provides the server's single runtime logging surface.
outboundhttp
Package outboundhttp provides the HTTP client used by configurable notification senders.
Package outboundhttp provides the HTTP client used by configurable notification senders.

Jump to

Keyboard shortcuts

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