Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTopic = errors.New("invalid topic") ErrRequiredTopic = errors.New("topic is required") )
Functions ¶
func NewMessageHandler ¶
func NewMessageHandler(eventHandler EventHandler) consumer.MessageHandler
func WithQueue ¶
func WithQueue(queueConfig *mqs.QueueConfig) func(opts *PublishMQOption)
Types ¶
type EventHandler ¶
func NewEventHandler ¶
func NewEventHandler( logger *logging.Logger, redisClient *redis.Client, deliveryMQ *deliverymq.DeliveryMQ, entityStore models.EntityStore, eventTracer eventtracer.EventTracer, topics []string, ) EventHandler
type PublishMQ ¶
type PublishMQ struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...func(opts *PublishMQOption)) *PublishMQ
type PublishMQOption ¶
type PublishMQOption struct {
QueueConfig *mqs.QueueConfig
}
type PublishedEvent ¶
type PublishedEvent struct { ID string `json:"id"` TenantID string `json:"tenant_id" binding:"required"` DestinationID string `json:"destination_id"` Topic string `json:"topic"` EligibleForRetry *bool `json:"eligible_for_retry"` Time time.Time `json:"time"` Metadata map[string]string `json:"metadata"` Data map[string]interface{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.