Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
ID int
Payload any
Headers map[string]any
Status int
ModelID int
RoutingKey string
Exchange string
CreatedAt time.Time
UpdatedAt time.Time
}
func (*Event) GetDeliveryMode ¶
func (e *Event) GetDeliveryMode() queue.DeliveryMode
func (*Event) GetHeaders ¶
func (*Event) GetRoutingKey ¶
func (*Event) SetHeaders ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func NewEventBus ¶
func NewEventBus(client *queue.RabbitMQ, repository Repository) *EventBus
Click to show internal directories.
Click to hide internal directories.