consumer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

CliOptions ...

Functions

This section is empty.

Types

type Config

type Config struct {
	rabbitmq.Config
}

Config ...

func (Config) CreateConsumer

func (config Config) CreateConsumer() (c Consumer, err error)

CreateConsumer ...

func (Config) ParseCli

func (config Config) ParseCli(ctx *cli.Context) Config

ParseCli ...

type Consumer

type Consumer struct {
	Config Config
	Conn   *amqp.Connection
	Ch     *amqp.Channel
}

Consumer ...

func WithConnection

func WithConnection(conn *amqp.Connection) (c Consumer, err error)

WithConnection ...

func (*Consumer) Close

func (c *Consumer) Close()

Close ...

func (*Consumer) ConsumeQueue

func (c *Consumer) ConsumeQueue(queueName string) (resultChan <-chan amqp.Delivery, err error)

ConsumeQueue ...

Jump to

Keyboard shortcuts

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