channel

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

Channel represents a RabbitMQ channel

func New

func New(c *amqp.Connection) (*Channel, error)

New creates a new channel

func (*Channel) Bind

func (ch *Channel) Bind(b bind.Bind) error

Bind binds a queue to an exchanger

func (*Channel) Close

func (ch *Channel) Close() error

Close closes the channel

func (*Channel) Connect

func (ch *Channel) Connect() error

Connect connects to the channel

func (*Channel) Consume

func (ch *Channel) Consume(q queue.Queue, autoAck bool) (<-chan amqp.Delivery, error)

Consume consumes a queue in the channel TODO: create consumer.Consume struct for properties/options

func (*Channel) Exchange

func (ch *Channel) Exchange(e exchange.Exchange) error

Exchange declares an exchange in the channel

func (*Channel) Queue

func (ch *Channel) Queue(q queue.Queue) error

Queue declares a queue in the channel

Jump to

Keyboard shortcuts

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