worker

package
v0.0.0-...-5d187b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package worker runs OpenPay's background jobs: the outbox drainer, the idempotency sweeper, the chart-of-accounts bootstrap and the ledger invariant checker, and the hold and wallet expiry sweepers; later the payment status poller and settlement ingest.

It runs alongside the HTTP and gRPC servers via AppNames, and can also be deployed on its own so background work does not compete with request traffic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(cfg *configs.Configuration) *Worker

func (*Worker) Name

func (w *Worker) Name() string

func (*Worker) Run

func (w *Worker) Run(ctx context.Context) error

func (*Worker) Shutdown

func (w *Worker) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL