internal

package
v0.0.0-...-b51bb73 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Timeout = 5

Variables

This section is empty.

Functions

func FailOnError

func FailOnError(err error, msg string)

func NewRedis

func NewRedis(local bool) *redis.Client

Types

type RabbitMQ

type RabbitMQ struct {
	Connection *amqp.Connection
	Channel    *amqp.Channel
	Queue      amqp.Queue
}

func NewRabbitMQ

func NewRabbitMQ(local bool) RabbitMQ

func (*RabbitMQ) CreateSubmissionChannel

func (rmq *RabbitMQ) CreateSubmissionChannel()

func (*RabbitMQ) DeclareAndBindQueue

func (rmq *RabbitMQ) DeclareAndBindQueue(n string)

func (*RabbitMQ) PublishMessage

func (rmq *RabbitMQ) PublishMessage(c string, b []byte) error

func (*RabbitMQ) SetConsumer

func (rmq *RabbitMQ) SetConsumer(k string) <-chan amqp.Delivery

Jump to

Keyboard shortcuts

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