amqp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component added in v0.2.0

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

Component implementation of a AMQP subscriber.

func New

func New(name, url, queue string, p async.ProcessorFunc) (*Component, error)

New returns a new AMQP subscriber.

func (*Component) Run added in v0.2.0

func (c *Component) Run(ctx context.Context) error

Run starts AMQP subscription and async processing of messages.

func (*Component) Shutdown added in v0.2.0

func (c *Component) Shutdown(ctx context.Context) error

Shutdown the component by closing gracefully AMQP channel and connection.

Jump to

Keyboard shortcuts

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