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. |
Click to show internal directories.
Click to hide internal directories.