amqpfx

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumerModule

func ConsumerModule[T consumer.Message](
	handler consumer.Handler[T],
	queueOptions consumer.QueueDeclare,
	connectionOptions connection.Config,
	options ...consumer.Option[T],
) fx.Option

func ConsumerModuleFunc

func ConsumerModuleFunc[T consumer.Message](
	handler func(context.Context, T) error,
	queueOptions consumer.QueueDeclare,
	connectionOptions connection.Config,
	options ...consumer.Option[T],
) fx.Option

func ConsumerModuleRaw

func ConsumerModuleRaw[T consumer.Message](
	handler consumer.RawHandler,
	queueOptions consumer.QueueDeclare,
	connectionOptions connection.Config,
	options ...consumer.Option[T],
) fx.Option

func ConsumerModuleRawFunc

func ConsumerModuleRawFunc[T consumer.Message](
	handler func(context.Context, *amqp091.Delivery) error,
	queueOptions consumer.QueueDeclare,
	connectionOptions connection.Config,
	options ...consumer.Option[T],
) fx.Option

func GetPublisherName

func GetPublisherName(connectionName, exchangeName string) string

func GetPublisherParamName

func GetPublisherParamName(connectionName, exchangeName string) string

func PublisherModule

func PublisherModule[T any](
	connectionOptions connection.Config,
	exchangeName string,
	options ...publisher.Option[T],
) fx.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳