Documentation
¶
Overview ¶
Package jobs wraps River with Soro transactions, options, and telemetry.
Index ¶
- func Perform[T river.JobArgs](ctx context.Context, args T, handler Handler[T]) error
- func Register[T river.JobArgs](client *Client, handler Handler[T]) error
- type Client
- func (client *Client) Enabled() bool
- func (client *Client) Enqueue(ctx context.Context, args river.JobArgs, options ...Option) (*Result, error)
- func (client *Client) EnqueueTx(ctx context.Context, args river.JobArgs, options ...Option) (*Result, error)
- func (client *Client) Migrate(ctx context.Context) error
- func (client *Client) Start(ctx context.Context) error
- func (client *Client) Stop(ctx context.Context) error
- type Config
- type Handler
- type Option
- type Result
- type UniqueConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Config ¶
type Option ¶
type Option func(*insertSettings) error
func MaxAttempts ¶
func Unique ¶
func Unique(config UniqueConfig) Option
func UniqueByArgs ¶
func UniqueByArgs() Option
Click to show internal directories.
Click to hide internal directories.