tasks

package
v0.0.0-...-fb3163d Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TypeExample = "example_task"

TypeExample is the type for the example task. This is what is passed in to TaskClient.New() when creating a new task

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleProcessor

type ExampleProcessor struct {
}

ExampleProcessor processes example tasks

func (*ExampleProcessor) ProcessTask

func (p *ExampleProcessor) ProcessTask(ctx context.Context, t *asynq.Task) error

ProcessTask handles the processing of the task

type ExampleTaskPayload

type ExampleTaskPayload struct {
	Counter int
}

Jump to

Keyboard shortcuts

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