message

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	Headers() *map[string]string
	Body() body.Body

	Ack() error
	Nack(requeue bool) error
}

Message represents the message interface

func NewFromDelivery

func NewFromDelivery(delivery amqp.Delivery) Message

NewFromDelivery creates a new message instance from delivery

type OnMessageHandler

type OnMessageHandler func(Message) error

OnMessageHandler represents a handler when RabbitMQ receive a message

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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