instance

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadServer

func LoadServer(conf *Config)

支持数据库和配置文件两种方式获取 KEY以及 Profile.

func RunShellTask

func RunShellTask(task ShellTask, servers Servers) (Status, error)

func SendMessage

func SendMessage(token, msg string)

发送到群里

func ServerCronRun

func ServerCronRun()

corn任务的处理,实现对 corn 的支持,主要就是判断时间对了就修改一下任务状态

func ServerLiveness

func ServerLiveness(dingtalkToken string)

dingtalkToken 为钉钉机器人的token

func ServerShellRun

func ServerShellRun()

查询数据库的批量脚本任务,符合条件后开始执行

Types

This section is empty.

Jump to

Keyboard shortcuts

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