test_delivery

package
v0.0.0-...-dcc13fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

* @Author: Chiefdom * @Date: 2023-12-06 16:15:49 * Copyright (c) 2023 by https://github.com/callmechiefdom, All Rights Reserved.

Index

Constants

View Source
const (
	TypeEmailDelivery = "email:deliver"
)

Variables

This section is empty.

Functions

func HandleEmailDeliveryTask

func HandleEmailDeliveryTask(ctx context.Context, t *asynq.Task) error

HandleEmailDeliveryTask 发送email处理逻辑

func NewEmailDeliveryTask

func NewEmailDeliveryTask(userID int, tmplID, dataStr string) (*asynq.Task, error)

NewEmailDeliveryTask 异步任务需要传递的数据

Types

type EmailDeliveryPayload

type EmailDeliveryPayload struct {
	UserID     int
	TemplateID string
	DataStr    string
}

EmailDeliveryPayload 异步任务需要传递的数据结构

Directories

Path Synopsis
* @Author: Chiefdom * @Date: 2023-12-06 16:15:53 * Copyright (c) 2023 by https://github.com/callmechiefdom, All Rights Reserved.
* @Author: Chiefdom * @Date: 2023-12-06 16:15:53 * Copyright (c) 2023 by https://github.com/callmechiefdom, All Rights Reserved.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL