Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClosed = errors.New("queue connection closed")
)
Functions ¶
This section is empty.
Types ¶
type NewQueueOpts ¶
type Queue ¶
type Queue interface { Start(ctx context.Context, queueName string) error Close(ctx context.Context) Publish(ctx context.Context, msg []byte) error Notify(ctx context.Context, wg *sync.WaitGroup) error Subscribe(ctx context.Context, msgs chan<- Message, wg *sync.WaitGroup) error Ack(ctx context.Context, msg Message) error Nack(ctx context.Context, msg Message, requeue bool) error }
type QueueMessageReceivedBody ¶
type QueueMessageReceivedBody struct { Event *bridge.BridgeMessageReceived ID int }
type QueueMessageSentBody ¶
type QueueMessageSentBody struct { Event *bridge.BridgeMessageSent ID int }
Click to show internal directories.
Click to hide internal directories.