Structs§
- Chat
IdQuery - Chat
IdRequest Body - Chat
Request Body - Chat
Response Body - Cleared
Body - There is no
/v1/compact: compaction in apollo is turn-local. - Model
Request Body - State
Body - Everything a client needs to render a status bar.
Constants§
- DRAIN_
TIMEOUT - How long shutdown waits for in-flight HTTP requests to finish. Bounded, so one genuinely stuck request cannot hold the process open forever.
Functions§
- build_
state - chat_
once - drain_
http_ server - Wait for the server task to finish draining, up to
DRAIN_TIMEOUT. - http_
listen_ addr - load_
or_ create_ token - Load the bearer token, generating and persisting one on first run.
- request_
shutdown - Request shutdown (also used by tests).
- spawn_
http_ server - Start the HTTP server.
- token_
path - Where the shared bearer token lives.
- wait_
for_ shutdown - Resolves once a shutdown has been requested over HTTP.