2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00
Files
panel/pkg/queue/job.go
2024-10-12 00:58:55 +08:00

17 lines
190 B
Go

package queue
type Job interface {
Handle(args ...any) error
}
type JobWithErrHandle interface {
Job
ErrHandle(err error)
}
type JobItem struct {
Job Job
Args []any
Delay uint
}