producer

package
v0.0.0-...-2a6ebeb Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0, Apache-2.0, MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

type Producer interface {
	// Produces a new message from the given string data, and pushes it to queue
	ProduceMessage(string)
}

A producer creates new DataMessages and pushes them to a specified queue, channel, etc. where the messages will be received and handled by listeners and consumers

type RabbitProducer

type RabbitProducer struct {
	IdGen     int32
	QueueName string
}

Simple producer that produces JSON encoded messages on a specified RabbitMq queue

func (*RabbitProducer) ProduceMessage

func (prod *RabbitProducer) ProduceMessage(data string)

Jump to

Keyboard shortcuts

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