message

package
v0.4.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedBrokers = []Broker{AmqpBroker}

SupportedBrokers defines the list of implemented message publishers.

Functions

func ValidateOpts

func ValidateOpts(opts *Options) error

ValidateOpts enforces broker-specific configuration requirements.

Types

type Broker

type Broker string

Broker represents a messaging protocol implementation.

const AmqpBroker Broker = "amqp"

AmqpBroker publishes messages using the AMQP protocol.

type Options

type Options struct {
	Broker Broker

	AmqpURI   string
	AmqpQueue string
}

Options defines the configuration for supported brokers.

type Producer

type Producer interface {
	Push(message interface{}) error
	Close() error
}

Producer defines the operations required by all message producers.

func NewProducer

func NewProducer(opts *Options, log logr.Logger) (Producer, error)

NewProducer configures a new message producer using the provided options.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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