amqp

package
v0.0.0-...-f0caac9 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Dozer: amqp protocol module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Conn *amqp.Connection
	Chan *amqp.Channel
}

AMQP Context type

type DozerProtocolAmqp

type DozerProtocolAmqp struct {
	sync.RWMutex
	Creds string
	// contains filtered or unexported fields
}

AMQP protocol type.

func (*DozerProtocolAmqp) Close

func (p *DozerProtocolAmqp) Close() error

Unsubscribe and disconnect.

func (*DozerProtocolAmqp) Dial

func (p *DozerProtocolAmqp) Dial(typ, host string, port int64) (uint64, error)

Connect to a AMQP server

func (*DozerProtocolAmqp) Init

func (p *DozerProtocolAmqp) Init(args ...string) error

Intialize the AMQP protocol

func (*DozerProtocolAmqp) RecvFrom

func (p *DozerProtocolAmqp) RecvFrom(id uint64, dest string, messages chan []byte, quit chan bool) error

Receive messages from a queue and forward them to a channel until a quit signal fires.

func (*DozerProtocolAmqp) SendTo

func (p *DozerProtocolAmqp) SendTo(id uint64, dest string, messages chan []byte, quit chan bool) error

Send messages to a queue from a channel until a quit signal fires.

Jump to

Keyboard shortcuts

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