amqp

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQPParcel

type AMQPParcel amqp.Delivery

func (AMQPParcel) ID

func (p AMQPParcel) ID() string

func (AMQPParcel) Method

func (p AMQPParcel) Method() string

func (AMQPParcel) Payload

func (p AMQPParcel) Payload() []byte

func (AMQPParcel) Source

func (p AMQPParcel) Source() string

type AMQPTransport

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

func New

func New(name, id, url string, options ...OptionsFunc) *AMQPTransport

func (*AMQPTransport) Initialize

func (t *AMQPTransport) Initialize() error

func (*AMQPTransport) Reply

func (t *AMQPTransport) Reply(reply transport.Reply) error

func (*AMQPTransport) Send

func (t *AMQPTransport) Send(p transport.Call) error

func (*AMQPTransport) Shutdown

func (t *AMQPTransport) Shutdown()

func (*AMQPTransport) Subscribe

func (t *AMQPTransport) Subscribe(method string, subscription transport.SubscribeFunc, throughput uint) error

type OptionsFunc

type OptionsFunc func(transport *AMQPTransport)

func SetConnection

func SetConnection(conn *amqp.Connection) OptionsFunc

Jump to

Keyboard shortcuts

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