endpoints

package
v0.0.0-...-9ce7603 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	Connect() error
	Close() error
}

Endpoint defines the the behavior of an endpoint

type RabbitMQEndpoint

type RabbitMQEndpoint struct {
	Connection *amqp.Connection
	Channel    *amqp.Channel
}

RabbitMQEndpoint defines the struct used by a RabbitMQ endpoint

func (*RabbitMQEndpoint) Close

func (endpoint *RabbitMQEndpoint) Close() error

Close takes case of closing connection to the RabbitMQ broker

func (*RabbitMQEndpoint) Connect

func (endpoint *RabbitMQEndpoint) Connect(config confighandler.Config) error

Connect exeuctes a connectiong to a RabbitMQ instance with specified values in confighandler.Config Writes the connection and open channel to communicate with Rabbit

Jump to

Keyboard shortcuts

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