internal/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT

Directories

Path Synopsis
Package api is what the shinyctl command and shinyctl-api say to each other over api.sock: the requests and replies of apply, restart, stop, delete and status as JSON, and the client that sends them.
Package api is what the shinyctl command and shinyctl-api say to each other over api.sock: the requests and replies of apply, restart, stop, delete and status as JSON, and the client that sends them.
Package atomicfile writes files that are never observed half-written.
Package atomicfile writes files that are never observed half-written.
Package logtail prints the end of a log file and follows it as it grows, including across process.RotateLog's copy-then-truncate.
Package logtail prints the end of a log file and follows it as it grows, including across process.RotateLog's copy-then-truncate.
Package manifest reads and validates shinyctl.yaml and holds AppSpec, the settings of one app with their defaults and limits: the fields users write, the paths made absolute, and the helpers that answer "how many copies" or "what restart policy" with the default applied.
Package manifest reads and validates shinyctl.yaml and holds AppSpec, the settings of one app with their defaults and limits: the fields users write, the paths made absolute, and the helpers that answer "how many copies" or "what restart policy" with the default applied.
Package process starts, finds and stops the processes shinyctl runs: the R process of each copy and the load balancer.
Package process starts, finds and stops the processes shinyctl runs: the R process of each copy and the load balancer.
Package proxy is shinyctl's built-in load balancer: the settings shinyctl-api renders for it, the hidden process that runs it, and the supervision that keeps that process up.
Package proxy is shinyctl's built-in load balancer: the settings shinyctl-api renders for it, the hidden process that runs it, and the supervision that keeps that process up.
lb
Package lb is the copies table of shinyctl's load balancer: which copies of each app exist, by role, kept in the load balancer's own memory and changed through a control-socket route.
Package lb is the copies table of shinyctl's load balancer: which copies of each app exist, by role, kept in the load balancer's own memory and changed through a control-socket route.
Package reconcile holds the pure decisions of the reconcile cycle: what each copy of an app needs (DecideCopies), whether a copy runs an older version than the manifest (Outdated), what a crash costs (RecordExit, the backoff, GaveUp), and the wording of what the cycle did.
Package reconcile holds the pure decisions of the reconcile cycle: what each copy of an app needs (DecideCopies), whether a copy runs an older version than the manifest (Outdated), what a crash costs (RecordExit, the backoff, GaveUp), and the wording of what the cycle did.
Package registry remembers which apps shinyctl-api manages: the last applied spec of each and whether it was stopped on purpose.
Package registry remembers which apps shinyctl-api manages: the last applied spec of each and whether it was stopped on purpose.
Package state is the record of one app on disk: state.json holds a record per copy (its process, port, start time, crash history and the time it began to drain), the app's revision, and the settings the copies were started from.
Package state is the record of one app on disk: state.json holds a record per copy (its process, port, start time, crash history and the time it began to drain), the app's revision, and the settings the copies were started from.

Jump to

Keyboard shortcuts

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