Versions in this module Expand all Collapse all v1 v1.12.1 Dec 19, 2024 v1.12.0 Dec 19, 2024 Changes in this version + var MinuteType = 1 + var SecondType = 0 + func DeleteTask(name string) + func EveryHour(size int) string + func EveryMinute(size int) string + func EverySecond(size int) string + func Everyday(size int) string + func GetRunningTasks() []string + func Init(opts ...Option) error + func IsRunningTask(name string) bool + func Run(tasks ...*Task) error + func Stop() + type Option func(*options) + func WithGranularity(granularity int) Option + func WithLog(log *zap.Logger, isOnlyPrintError ...bool) Option + type Task struct + Fn func() + IsRunOnce bool + Name string + TimeSpec string