type WorkArgs …
func (w *WorkArgs) KeyFromWorkArgs() string { … }
func NewWorkArgs(name, namespace string) *WorkArgs { … }
type TimedWorker …
func createWorker(ctx context.Context, args *WorkArgs, createdAt time.Time, fireAt time.Time, f func(ctx context.Context, fireAt time.Time, args *WorkArgs) error, clock clock.WithDelayedExecution) *TimedWorker { … }
func (w *TimedWorker) Cancel() { … }
type TimedWorkerQueue …
func CreateWorkerQueue(f func(ctx context.Context, fireAt time.Time, args *WorkArgs) error) *TimedWorkerQueue { … }
func (q *TimedWorkerQueue) getWrappedWorkerFunc(key string) func(ctx context.Context, fireAt time.Time, args *WorkArgs) error { … }
func (q *TimedWorkerQueue) AddWork(ctx context.Context, args *WorkArgs, createdAt time.Time, fireAt time.Time) { … }
func (q *TimedWorkerQueue) CancelWork(logger klog.Logger, key string) bool { … }
func (q *TimedWorkerQueue) GetWorkerUnsafe(key string) *TimedWorker { … }