rabbitmq

package
v0.0.0-...-3579b89 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenConnection

func OpenConnection() (*amqp.Connection, error)

Types

type Channel

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

func NewChannel

func NewChannel(conn *amqp.Connection) Channel

func (Channel) Create

func (c Channel) Create() (*amqp.Channel, error)

type Consumer

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

func NewConsumer

func NewConsumer(channel *amqp.Channel, queueName string) Consumer

func (Consumer) Consume

func (c Consumer) Consume() error

type Producer

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

func NewProducer

func NewProducer(channel *amqp.Channel, queueName string) Producer

func (Producer) Publish

func (p Producer) Publish(message string) error

type Queue

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

func NewQueue

func NewQueue(channel *amqp.Channel, name string) Queue

func (Queue) Create

func (q Queue) Create() (amqp.Queue, error)

Jump to

Keyboard shortcuts

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