queue

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TaskTypeNormal = "job:normal"

Variables

This section is empty.

Functions

func InitQueueConnection

func InitQueueConnection(
	ctx context.Context,
	cfg *config.AppConfig,
	topic string,
)

Types

type InvalidPayloadError

type InvalidPayloadError struct {
	Msg   string
	Inner error
}

func (*InvalidPayloadError) Error

func (e *InvalidPayloadError) Error() string

func (*InvalidPayloadError) Unwrap

func (e *InvalidPayloadError) Unwrap() error

type NormalTaskProcessor

type NormalTaskProcessor struct {
	// contains filtered or unexported fields
}

func (*NormalTaskProcessor) ProcessTask

func (processor *NormalTaskProcessor) ProcessTask(
	ctx context.Context,
	task *asynq.Task,
) error

type PullError

type PullError struct {
	Artifact string
	Err      error
}

func (*PullError) Error

func (e *PullError) Error() string

func (*PullError) Unwrap

func (e *PullError) Unwrap() error

type WasmExecutionError

type WasmExecutionError struct {
	Msg   string
	Inner error
}

func (*WasmExecutionError) Error

func (e *WasmExecutionError) Error() string

func (*WasmExecutionError) Unwrap

func (e *WasmExecutionError) Unwrap() error

Jump to

Keyboard shortcuts

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