Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2023 Changes in this version + const ActionBeat + const ActionIdleBeat + const ActionKill + const ActionLog + const ActionRun + const Error + const Success + func Init(opts ...Option) (err error) + type CallElement struct + HandleCode int + HandleMsg string + func Callback(code int, msg string) CallElement + type Job interface + Run func() + type Option func(s *schedule) + func WithTask(rt ...RegTask) Option + type RegTask struct + CronSpec string + Func TaskFunc + Handler string + type RunReq struct + ExecutorHandler string + JobID int64 + type Schedule interface + AddJob func(executorHandler string, spec string, f TaskFunc) (err error) + RunJob func(jobId string) CallElement + var Server Schedule + type Task struct + EndTime int64 + Id string + Name string + Param *RunReq + StartTime int64 + func (t *Task) Run() CallElement + type TaskFunc func() (code int, msg string)