mirror of
https://github.com/wonli/aqi.git
synced 2024-06-28 09:57:05 +08:00
13 lines
168 B
Go
13 lines
168 B
Go
|
package worker
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/hibiken/asynq"
|
||
|
)
|
||
|
|
||
|
type Task interface {
|
||
|
GetName() string
|
||
|
ProcessTask(ctx context.Context, task *asynq.Task) error
|
||
|
}
|