Documentation ¶
Index ¶
- Constants
- type Logger
- type PayloadAddSearchAnalytic
- type PayloadSendNewPwEmail
- type PayloadSendVerifyEmail
- type RedisTaskDistributor
- func (distributor *RedisTaskDistributor) DistributeTaskAddSearchAnalytic(ctx context.Context, payload *PayloadAddSearchAnalytic, opts ...asynq.Option) error
- func (distributor *RedisTaskDistributor) DistributeTaskSendNewPwEmail(ctx context.Context, payload *PayloadSendNewPwEmail, opts ...asynq.Option) error
- func (distributor *RedisTaskDistributor) DistributeTaskSendVerifyEmail(ctx context.Context, payload *PayloadSendVerifyEmail, opts ...asynq.Option) error
- type RedisTaskProcessor
- func (processor *RedisTaskProcessor) ProcessTaskAddSearchAnalytic(ctx context.Context, task *asynq.Task) error
- func (processor *RedisTaskProcessor) ProcessTaskSendNewPwEmail(ctx context.Context, task *asynq.Task) error
- func (processor *RedisTaskProcessor) ProcessTaskSendVerifyEmail(ctx context.Context, task *asynq.Task) error
- func (processor *RedisTaskProcessor) Shutdown()
- func (processor *RedisTaskProcessor) Start() error
- type TaskDistributor
- type TaskProcessor
Constants ¶
View Source
const TaskAddSearchAnalytic = "task:add_search_analytic"
View Source
const TaskSendNewPwEmail = "task:send_new_pw_email"
View Source
const TaskSendVerifyEmail = "task:send_verify_email"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PayloadAddSearchAnalytic ¶
type PayloadAddSearchAnalytic struct { Professional bool `json:"profesional"` Ags string `json:"ags"` Plz sql.NullString `json:"plz"` Problem string `json:"problem"` Birthyear sql.NullInt64 `json:"birthyear"` Gender sql.NullString `json:"gender"` Law sql.NullString `json:"law"` SocialForm sql.NullString `json:"socialform"` ResultCount int `json:"resultcount"` }
type PayloadSendNewPwEmail ¶
type PayloadSendVerifyEmail ¶
type RedisTaskDistributor ¶
func (*RedisTaskDistributor) DistributeTaskAddSearchAnalytic ¶
func (distributor *RedisTaskDistributor) DistributeTaskAddSearchAnalytic( ctx context.Context, payload *PayloadAddSearchAnalytic, opts ...asynq.Option, ) error
func (*RedisTaskDistributor) DistributeTaskSendNewPwEmail ¶
func (distributor *RedisTaskDistributor) DistributeTaskSendNewPwEmail( ctx context.Context, payload *PayloadSendNewPwEmail, opts ...asynq.Option, ) error
func (*RedisTaskDistributor) DistributeTaskSendVerifyEmail ¶
func (distributor *RedisTaskDistributor) DistributeTaskSendVerifyEmail( ctx context.Context, payload *PayloadSendVerifyEmail, opts ...asynq.Option, ) error
type RedisTaskProcessor ¶
func (*RedisTaskProcessor) ProcessTaskAddSearchAnalytic ¶
func (*RedisTaskProcessor) ProcessTaskSendNewPwEmail ¶
func (*RedisTaskProcessor) ProcessTaskSendVerifyEmail ¶
func (*RedisTaskProcessor) Shutdown ¶
func (processor *RedisTaskProcessor) Shutdown()
func (*RedisTaskProcessor) Start ¶
func (processor *RedisTaskProcessor) Start() error
type TaskDistributor ¶
type TaskDistributor interface { DistributeTaskSendVerifyEmail( ctx context.Context, payload *PayloadSendVerifyEmail, opts ...asynq.Option, ) error DistributeTaskSendNewPwEmail( ctx context.Context, payload *PayloadSendNewPwEmail, opts ...asynq.Option, ) error DistributeTaskAddSearchAnalytic( ctx context.Context, payload *PayloadAddSearchAnalytic, opts ...asynq.Option, ) error }
func NewRedisTaskDistributor ¶
func NewRedisTaskDistributor(redisOpt asynq.RedisClientOpt) TaskDistributor
type TaskProcessor ¶
type TaskProcessor interface { Start() error Shutdown() ProcessTaskSendVerifyEmail(ctx context.Context, task *asynq.Task) error ProcessTaskSendNewPwEmail(ctx context.Context, task *asynq.Task) error ProcessTaskAddSearchAnalytic(ctx context.Context, task *asynq.Task) error }
func NewRedisTaskProcessor ¶
func NewRedisTaskProcessor(ctx context.Context, redisOpt asynq.RedisClientOpt, db *database.DB, cfg *config.Config) TaskProcessor
Click to show internal directories.
Click to hide internal directories.