Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeHandler ¶
func InitializeHandler(h Handler) worker.Handler
InitializeHandler returns go-sqs-poller worker Handler from common Handler interface.
Types ¶
type Handler ¶
Handler is common interface for handling sqs message in the risken.
func RetryableErrorHandler ¶
RetryableErrorHandler returns the Handler that returns nil when NonRetryableError occurred.
func TracingHandler ¶
type HandlerFunc ¶
func (HandlerFunc) HandleMessage ¶
type NonRetryableError ¶
type NonRetryableError struct {
// contains filtered or unexported fields
}
NonRetryableError indicates an error that the message cause the error cannot be retried.
func WrapNonRetryable ¶
func WrapNonRetryable(err error) NonRetryableError
func (NonRetryableError) Error ¶
func (e NonRetryableError) Error() string
Click to show internal directories.
Click to hide internal directories.