Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerHandler ¶
type ConsumerHandler interface {
Handle(ConsumerMessage) (map[string]interface{}, error)
}
type ConsumerMessage ¶
type ConsumerMessage struct { QueueMessage *dto.QueueMessage // contains filtered or unexported fields }
type ErrorMessage ¶
type NotifyEventHandler ¶
type NotifyEventHandler struct {
// contains filtered or unexported fields
}
func NewNotifyEventHandler ¶
func NewNotifyEventHandler(rabbitMqClient *infra.RabbitMQ) *NotifyEventHandler
func (*NotifyEventHandler) Handle ¶
func (h *NotifyEventHandler) Handle(message ConsumerMessage) (map[string]interface{}, error)
type NotifyEventMessageBody ¶
type PubsubConsumer ¶
type PubsubConsumer struct {
// contains filtered or unexported fields
}
func NewPubsubConsumer ¶
func NewPubsubConsumer(consumer ConsumerHandler, dynamoClient *infra.DynamodbClient, rabbitMqClient *infra.RabbitMQ, battery *infra.Battery) (*PubsubConsumer, error)
func (*PubsubConsumer) Consume ¶
func (p *PubsubConsumer) Consume(wg *sync.WaitGroup)
type SQSConsumer ¶
type SQSConsumer struct {
// contains filtered or unexported fields
}
func NewSQSConsumer ¶
func NewSQSConsumer(queueUrl, dlq string, sqsClient *sqs.SQS, consumer ConsumerHandler, maxNumberOfMessages int64, logManager *producer.LoggerManager, dynamoClient *infra.DynamodbClient) (*SQSConsumer, error)
func (*SQSConsumer) Init ¶
func (c *SQSConsumer) Init(wg *sync.WaitGroup)
Click to show internal directories.
Click to hide internal directories.