message

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 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 Key

type Key struct {
	// ExchangeName 交换机名称
	ExchangeName string
	// QueueName 队列名称
	QueueName string
	// RouteKey 队列路由
	RouteKey string
}

Key 消息队列key

type Message

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

Message 队列消息体

func NewMessage

func NewMessage(key Key, id, body string) Message

NewMessage 创建队列消息体

func (*Message) Body

func (message *Message) Body() string

func (*Message) ExchangeName

func (message *Message) ExchangeName() string

func (*Message) Id

func (message *Message) Id() string

func (*Message) QueueName

func (message *Message) QueueName() string

func (*Message) RouteKey

func (message *Message) RouteKey() string

Jump to

Keyboard shortcuts

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