consumer

package
v0.0.0-...-cb39d06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	Host         string
	RoutingKey   string
	Exchange     string
	ExchangeType string
	Ch           chan Message
	ConsumeRatio int
}

Consumer consumes messages matching a given rabbitmq routing key

func (*Consumer) Consume

func (c *Consumer) Consume()

Consume messages from rabbitmq

type Message

type Message struct {
	Body        []byte
	ContentType string
	RoutingKey  string
	Exchange    string
	Delivery    amqp.Delivery
}

Message is a message consumed from rabbitmq

Jump to

Keyboard shortcuts

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