rabbitmq

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

func NewListener

func NewListener(addr, queue string) (*Listener, error)

func (*Listener) Close

func (r *Listener) Close() error

func (*Listener) Listen

func (r *Listener) Listen() (<-chan amqp.Delivery, error)

type Publisher

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

func NewPublisher

func NewPublisher(addr, queue string) (*Publisher, error)

func (*Publisher) Close

func (r *Publisher) Close() error

func (*Publisher) Publish

func (r *Publisher) Publish(body []byte, contentType string) error

Jump to

Keyboard shortcuts

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