common

package
v0.0.0-...-a49e224 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRabbitMQ

func GetRabbitMQ() (string, error)

func HandleError

func HandleError(err error, msg string)

func Receive

func Receive(msgCh <-chan amqp.Delivery, queueName string, delay time.Duration)

Types

type Generator

type Generator struct {
	Key   string
	Color int
}

func (*Generator) Generate

func (g *Generator) Generate(channel chan Message, maxCount int)

type Message

type Message struct {
	Key  string
	Body string
}

Jump to

Keyboard shortcuts

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