Skip to main content

Module serve

Module serve 

Source
Expand description

vcon-server serve: the server, run from its configuration.

Structs§

PackRunReport
What one pack run over every tenant did.
SweepReport
What one purge sweep did.

Enums§

ServeError
Why the server did not start, or stopped.

Functions§

every
Runs job at once, then again interval after each run ends, until shutdown completes; a run still going when it does is not awaited.
pack_all
One pack run over every tenant, as Store::pack does for one, with the configured limit and reader grace. A tenant whose run fails is counted and left for the next run. Logged with counts only, never a tenant.
rotation_overdue
Whether key rotation is overdue: the oldest purge or removal waiting for it is older than rotation_warn.
run
Runs the server until shutdown completes: locks the data directory, opens the registry under the master key, and serves the API over TLS.
sweep
One purge sweep: each tenant purges what is due under its own retention period, else default. A tenant that cannot be swept, such as one whose period does not read back or that is being removed, is counted and left for the next sweep. The sweep is logged with counts only, never a tenant.