Versions in this module Expand all Collapse all v0 v0.0.2 Jun 13, 2024 v0.0.1 May 28, 2024 Changes in this version + var ErrClosedTaskCron = errors.New("operate on closed task cron") + var ErrInvalidCronExpr = errors.New("invalid cron expr") + var ErrRepeatedRegister = errors.New("repeated register") + type Handler func(key string, value interface{}) + type TaskCron struct + func New(client *clientv3.Client, prefix string) *TaskCron + func (tc *TaskCron) Add(spec, key, value string, taskTimeout int, handler Handler) (err error) + func (tc *TaskCron) Close() + func (tc *TaskCron) Remove(key, value string) error + func (tc *TaskCron) UpdateTime(key, value, spec string) error