Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageHandler ¶
type MessageHandler func(ctx context.Context, msg pulsar.Message) MessageHandlerResult
MessageHandler is a function that will be called everytime a message arrives at a consumer.
type MessageHandlerResult ¶
MessageHandlerResult will be returned by the MessageHandler. The MessageHandlerResult will Ack/Nack the message.
func Ack ¶
func Ack() MessageHandlerResult
Ack should be returned by a MessageHandler whenever the message needs to be acknowledged.
func Later ¶
func Later(delay time.Duration) MessageHandlerResult
Later should be returned by a MessageHandler whenever the message needs to be re-consumed later.
func Nack ¶
func Nack() MessageHandlerResult
Nack should be returned by a MessageHandler whenever the message needs to be NOT acknowledged.
Click to show internal directories.
Click to hide internal directories.