internal/

directory
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0

Directories

Path Synopsis
adapter
pgstore
Package pgstore implements the job store ports on Postgres with pgx.
Package pgstore implements the job store ports on Postgres with pgx.
app
completer
Package completer writes job completions and heartbeats to the database in batches.
Package completer writes job completions and heartbeats to the database in batches.
elector
Package elector elects one leader per cluster with a lease row.
Package elector elects one leader per cluster with a lease row.
executor
Package executor runs one attempt of a job and maps the result to a completion.
Package executor runs one attempt of a job and maps the result to a completion.
maintenance
Package maintenance runs the leader-only background services and the cancel poller.
Package maintenance runs the leader-only background services and the cancel poller.
notifier
Package notifier shares one Postgres LISTEN connection between subscribers and reconnects when it drops.
Package notifier shares one Postgres LISTEN connection between subscribers and reconnects when it drops.
producer
Package producer runs the fetch loop of one queue and runs each fetched job on its own goroutine.
Package producer runs the fetch loop of one queue and runs each fetched job on its own goroutine.
Package cli implements the foreman admin CLI.
Package cli implements the foreman admin CLI.
Package config loads and validates the configuration of the foreman CLI.
Package config loads and validates the configuration of the foreman CLI.
domain
backoff
Package backoff provides retry delay policies.
Package backoff provides retry delay policies.
fairness
Package fairness decides how a fetch is split between concurrency keys.
Package fairness decides how a fetch is split between concurrency keys.
job
Package job defines the job row, its state machine and the mapping from a work result to a completion.
Package job defines the job row, its state machine and the mapping from a work result to a completion.
schedule
Package schedule provides cron and fixed-interval schedules and finds the ticks that are due.
Package schedule provides cron and fixed-interval schedules and finds the ticks that are due.
unique
Package unique builds the identity of unique jobs from their options.
Package unique builds the identity of unique jobs from their options.
platform
clock
Package clock provides the injectable time source.
Package clock provides the injectable time source.
metrics
Package metrics defines the Prometheus collectors of a Foreman client.
Package metrics defines the Prometheus collectors of a Foreman client.
tracing
Package tracing creates OpenTelemetry spans for job work and inserts.
Package tracing creates OpenTelemetry spans for job work and inserts.
Package testutil holds helpers shared by tests.
Package testutil holds helpers shared by tests.
pgtest
Package pgtest provides Postgres for integration tests.
Package pgtest provides Postgres for integration tests.

Jump to

Keyboard shortcuts

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