rmq

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acknowledger

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

Acknowledger implements the Acknowledger for AMQP library.

func (*Acknowledger) Ack

func (a *Acknowledger) Ack() error

Ack signals acknowledgement.

func (*Acknowledger) Reject

func (a *Acknowledger) Reject(requeue bool) error

Reject signals rejection. If requeue is false, the job will go to the buried queue until Queue.RepublishBuried() is called.

type RMQ added in v0.0.4

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

RMQ is a RabbitMQ consumer configuration Implement Consumer.Consumer interface

func New

func New(c *consumer.Config) (*RMQ, error)

New create a new rabbitmq consumer with implements consumer.Consumer interface

func (*RMQ) Close added in v0.0.4

func (c *RMQ) Close() error

Close the channel connection

func (*RMQ) Connect added in v0.0.4

func (c *RMQ) Connect() error

Connect to RabbitMQ server and channel

func (*RMQ) Consume added in v0.0.4

func (c *RMQ) Consume(id string) (<-chan consumer.Messages, error)

Consume messages from the queue channel

Jump to

Keyboard shortcuts

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