workers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package workers is the parent folder of the worker processes' code: one package per provider (pkg/workers/withings, pkg/workers/strengthlevel, ...) next to the generic loop in pkg/workers/runner. A worker has no database: it leases jobs from the backend over pkg/shared/workerapi, talks to the outside service, and reports back. boundary_test.go keeps it so.

Directories

Path Synopsis
Package builtin lists the workers that ship with the program, so the processes that run them (dexafix serve worker, and the single-process mode) choose providers by name without knowing any of them.
Package builtin lists the workers that ship with the program, so the processes that run them (dexafix serve worker, and the single-process mode) choose providers by name without knowing any of them.
Package runner is the loop every worker runs: register with the backend, lease jobs, run the handler of the job's kind while renewing the lease, and report how it ended.
Package runner is the loop every worker runs: register with the backend, lease jobs, run the handler of the job's kind while renewing the lease, and report how it ended.
Package strengthlevel is the worker for Strength Level.
Package strengthlevel is the worker for Strength Level.
Package withings is the worker for Withings: it talks to the Withings API for the backend.
Package withings is the worker for Withings: it talks to the Withings API for the backend.

Jump to

Keyboard shortcuts

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