Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeEmailDelivery = "email:deliver" TypeImageResize = "image:resize" )
A list of task types.
Variables ¶
This section is empty.
Functions ¶
func NewImageResizeTask ¶
Types ¶
type EmailDeliveryPayload ¶
type EmailProcessor ¶
EmailProcessor implements asynq.Handler interface.
func NewEmailProcessor ¶
func NewEmailProcessor() *EmailProcessor
func (*EmailProcessor) HandleEmailDeliveryTask ¶
--------------------------------------------------------------- Write a function HandleXXXTask to handle the input task. Note that it satisfies the asynq.HandlerFunc interface.
Handler doesn't need to be a function. You can define a type that satisfies asynq.Handler interface. See examples below. ---------------------------------------------------------------
type ImageProcessor ¶
ImageProcessor implements asynq.Handler interface.
func NewImageProcessor ¶
func NewImageProcessor() *ImageProcessor
func (*ImageProcessor) HandleImageResizeTask ¶
func (*ImageProcessor) ProcessTask ¶
type ImageResizePayload ¶
type ImageResizePayload struct {
SourceURL string
}
Click to show internal directories.
Click to hide internal directories.