rmq

package
v0.0.0-...-1081ff4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opts SetupOptions) (instance.RMQ, error)

Types

type RmqInst

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

func (*RmqInst) Consume

func (r *RmqInst) Consume(queueName string, consumer string) (*amqp.Channel, <-chan amqp.Delivery, error)

func (*RmqInst) Publish

func (r *RmqInst) Publish(queueName string, msg amqp.Publishing) error

type SetupOptions

type SetupOptions struct {
	URI string
}

Jump to

Keyboard shortcuts

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