Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvCFAPIKey api key 环境变量 key EnvCFAPIKey = "CF_API_KEY" // EnvCFAPIEmail api email 环境变量 key EnvCFAPIEmail = "CF_API_EMAIL" )
Variables ¶
View Source
var ( // ErrNotSetEnv 未设置环境变量 ErrNotSetEnv = errors.New("cf env not set") // ErrNotSetTask 未设置工作模式 ErrNotSetTask = errors.New("cf task not set") )
Functions ¶
This section is empty.
Types ¶
type Runner ¶
Runner 执行者定义
func NewRunnerWithInfo ¶
NewRunnerWithInfo 初始化 Runner
func (*Runner) PrepareCron ¶
func (r *Runner) PrepareCron(spec string, first bool, callback ErrCallback) *cron.Cron
PrepareCron 准备 cron 执行
Click to show internal directories.
Click to hide internal directories.