Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config[P any, S any, T Enqueuer[P, S]] struct { // Enqueuer represents the enqueuer of Jobs. This can be the *relay.Client or other wrapper. Enqueuer T // Backoff if the backoff used when calling `enqueue`. // Optional: If not set a default backoff is used. Backoff backoff.Exponential }
Config contains all information needed to initialize a Producer.
type Enqueuer ¶
type Enqueuer[P any, S any] interface { Enqueue(context.Context, relay.Job[P, S]) error EnqueueBatch(context.Context, []relay.Job[P, S]) error }
Enqueuer represents the enqueuer of Jobs.
Click to show internal directories.
Click to hide internal directories.