Spaces:
Configuration error
Configuration error
File size: 481 Bytes
602f6ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | package worker
import (
"context"
"github.com/hibiken/asynq"
)
type TaskDistributor interface {
DistributeTaskSendVerifyEmail(
ctx context.Context,
payload *PayloadSendVerifyEmail,
opts ...asynq.Option,
) error
DistributeTaskSendForgotPasswordEmail(
ctx context.Context,
payload *PayloadSendForgotPasswordEmail,
opts ...asynq.Option,
) error
}
// AsyncTaskDistributor is a global variable to hold the task distributor
var AsyncTaskDistributor TaskDistributor
|