message

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.1.0

type Handler func(ctx context.Context, msg *Message) error

Handler 消息处理函数

type Message

type Message struct {
	ID       string            `json:"id"`
	Topic    string            `json:"topic"`
	Payload  []byte            `json:"payload"`
	Headers  map[string]string `json:"headers"`
	Delay    time.Duration     `json:"delay,omitempty"`
	Retry    int               `json:"retry,omitempty"`
	CreateAt time.Time         `json:"create_at"`
}

Message 消息结构

Jump to

Keyboard shortcuts

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