Files
panel/pkg/queue/job.go
T
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
}