amqputil

package
v0.0.0-...-e42251a Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package amqputil provides utilities to work with http://github.com/streadway/amqp/ package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retry

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

Retry connects to AMQP and retry on network failures.

func NewRetry

func NewRetry(url string, config *amqp.Config, delay time.Duration) *Retry

NewRetry builds a new retry.

func (*Retry) Channel

func (ar *Retry) Channel() <-chan *amqp.Channel

Channel returns a chan of AMQP Channels. When the AMQP connection is ready it will be sent an AMQP Channel and will be closed. if the chan is closed before sending a channel it means an error occured and the receiver must not call the method again.

func (*Retry) Close

func (ar *Retry) Close() error

Close closes the AMQP connections and stops the retry.

Jump to

Keyboard shortcuts

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