amqpService

package
v0.0.0-...-31b8eb5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Jobs        = make(chan dto.Message)
	JobStatuses = make(chan dto.Message)
)

Functions

func Publish

func Publish(sessions chan chan session, messages <-chan dto.Message, exchangeName string)

publish publishes messages to a reconnecting session to a fanout exchange. It receives from the application specific source of messages.

func Redial

func Redial(ctx context.Context, url string) chan chan session

redial continually connects to the URL

func Subscribe

func Subscribe(sessions chan chan session, messages chan<- dto.Message, queueName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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