internal/

directory
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0

Directories

Path Synopsis
Package api implements the TasklaneService gRPC API over store.Store, the API-key interceptor and the HTTP/JSON gateway.
Package api implements the TasklaneService gRPC API over store.Store, the API-key interceptor and the HTTP/JSON gateway.
Package backoff computes retry delays: exponential growth with a cap and full jitter, so retries from many failed jobs spread out instead of arriving in lockstep.
Package backoff computes retry delays: exponential growth with a cap and full jitter, so retries from many failed jobs spread out instead of arriving in lockstep.
gateway
tasklane/v1
Package tasklanev1 is a reverse proxy.
Package tasklanev1 is a reverse proxy.
Package ledger records what workers and producers did, one JSON object per line, so the invariant and chaos tests can check it against the database.
Package ledger records what workers and producers did, one JSON object per line, so the invariant and chaos tests can check it against the database.
Package metrics defines Tasklane's Prometheus metrics (design §16.2) on a registry of their own, so tests can create a fresh one.
Package metrics defines Tasklane's Prometheus metrics (design §16.2) on a registry of their own, so tests can create a fresh one.
Package notify wakes long-polling leases when jobs are enqueued.
Package notify wakes long-polling leases when jobs are enqueued.
Package pgstore implements store.Store on PostgreSQL.
Package pgstore implements store.Store on PostgreSQL.
Package pruner runs the background loop that deletes old finished jobs: completed and cancelled ones after the retention period, dead ones after the (longer) dead retention.
Package pruner runs the background loop that deletes old finished jobs: completed and cancelled ones after the retention period, dead ones after the (longer) dead retention.
Package reaper runs the background loop that returns expired leases to the queue.
Package reaper runs the background loop that returns expired leases to the queue.
Package store defines Tasklane's storage contract.
Package store defines Tasklane's storage contract.
Package testpg starts a throwaway PostgreSQL for integration tests.
Package testpg starts a throwaway PostgreSQL for integration tests.
Package traceparent converts between OpenTelemetry span contexts and the W3C traceparent string Tasklane stores with each job (design §18).
Package traceparent converts between OpenTelemetry span contexts and the W3C traceparent string Tasklane stores with each job (design §18).
Package tracing sets up OpenTelemetry tracing for the server and the demo programs from the standard OTEL_* environment variables (design §18.3).
Package tracing sets up OpenTelemetry tracing for the server and the demo programs from the standard OTEL_* environment variables (design §18.3).
Package version holds the build's version, set at link time by the Dockerfile and the release workflow (design §22.4):
Package version holds the build's version, set at link time by the Dockerfile and the release workflow (design §22.4):

Jump to

Keyboard shortcuts

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