rabbitmq

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueConsumer

type QueueConsumer interface {
	Consume() (<-chan *types.OpenFaaSInvocation, error)
	Stop()
	ListenForErrors() <-chan *amqp.Error
}

QueueConsumer is an Consumer that listens on a specified queue and forwards incoming messages.

func NewQueueConsumer

func NewQueueConsumer(queueName string, channel *amqp.Channel) QueueConsumer

NewQueueConsumer creates a new instance of QueueConsumer and assigns the passed channel to it.

type QueueConsumerFactory

type QueueConsumerFactory interface {
	Build(topic string) (QueueConsumer, error)
}

QueueConsumerFactory will build QueueConsumer for the given topic.

func NewQueueConsumerFactory

func NewQueueConsumerFactory(config *config.Controller) (QueueConsumerFactory, error)

NewQueueConsumerFactory Initializes a new factory using the provided config.

Jump to

Keyboard shortcuts

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