Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRabbitMQConn ¶
func NewRabbitMQConn(cfg *RabbitMQConfig, ctx context.Context) (*amqp.Connection, error)
Initialize new channel for rabbitmq
Types ¶
type Consumer ¶
type Consumer[T any] struct { // contains filtered or unexported fields }
func (Consumer[T]) ConsumeMessage ¶
func (Consumer[T]) IsConsumed ¶
type IConsumer ¶
type IPublisher ¶
type IPublisher interface { PublishMessage(msg interface{}) error IsPublished(msg interface{}) bool }
func NewPublisher ¶
func NewPublisher(ctx context.Context, cfg *RabbitMQConfig, conn *amqp.Connection, log logger.ILogger, jaegerTracer trace.Tracer) IPublisher
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func (Publisher) IsPublished ¶
func (Publisher) PublishMessage ¶
Click to show internal directories.
Click to hide internal directories.