Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DLQ ¶
type DLQ[T any] struct { // contains filtered or unexported fields }
func NewDLQWithDelay ¶
func (*DLQ[T]) AddItemHighPriority ¶
func (dlq *DLQ[T]) AddItemHighPriority(item T)
func (*DLQ[T]) GetNextItem ¶
type Item ¶
Item This is generic so that metadata about retries can be maintained in an envelope during processing for when an item needs to make its way back onto the DLQ later
type RetryStrategy ¶
RetryStrategy takes the number of retries and returns a Duration. This allows the caller to implement any strategy they like, be it constant, linear, exponential, etc.
func RetryDelayLinear ¶
func RetryDelayLinear(backoff time.Duration) RetryStrategy
Click to show internal directories.
Click to hide internal directories.