job

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// TopicKey 队列主题key
	TopicKey() string
	// Handle 队列处理器
	Handle(ctx context.Context, msg *message.Message) error
}

Handler 队列任务处理接口

type TaskTestTask

type TaskTestTask struct{}

func (TaskTestTask) Handle

func (task TaskTestTask) Handle(ctx context.Context, message *message.Message) error

func (TaskTestTask) TopicKey added in v0.3.2

func (task TaskTestTask) TopicKey() string

Jump to

Keyboard shortcuts

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