connector

package
v0.0.0-...-e05f62f Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineQueue

func DefineQueue(channel *amqp.Channel, queueName string) (amqp.Queue, error)

func HandleReceivedIndices

func HandleReceivedIndices(subscriber <-chan amqp.Delivery, indicesChannel chan []string)

func OpenChannel

func OpenChannel(connection *amqp.Connection) (*amqp.Channel, error)

func OpenConnection

func OpenConnection() (*amqp.Connection, error)

func OpenSubscriber

func OpenSubscriber(channel *amqp.Channel, queueName string) (<-chan amqp.Delivery, error)

func PublishIndices

func PublishIndices(channel *amqp.Channel, queueName string, result *exchange.ExchangesResult) error

Types

type ChannelError

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

func (*ChannelError) Error

func (channelError *ChannelError) Error() string

type ConnectionError

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

func (*ConnectionError) Error

func (connError *ConnectionError) Error() string

Jump to

Keyboard shortcuts

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