Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker interface { Publisher Initialize() error Consume(group *sync.WaitGroup) Disconnect() error Subscribe(exchange, routingKey string, handler Handler) error }
Broker is the interface which defines the client connection(s) to a concrete broker like amqp
type Event ¶
type Event interface { Message() *Message Ack() Nack(retry bool) QueueName() string RoutingKey() string SetContext(ctx context.Context) }
Event abstraction
Click to show internal directories.
Click to hide internal directories.