Expand description
Manages the pending pings queue and directory.
- Keeps track of pending pings, loading any unsent ping from disk on startup;
- Exposes
get_upload_task
API for the platform layer to request next upload task; - Exposes
process_ping_upload_response
API to check the HTTP response from the ping upload and either delete the corresponding ping from disk or re-enqueue it for sending.
Structs§
- Ping
Metadata - A ping’s metadata, as (optionally) represented on disk.
- Ping
Payload - A representation of the data extracted from a ping file,
- Ping
Request - Represents a request to upload a ping.
- Ping
Upload Manager - Manages the pending pings queue and directory.
Enums§
- Ping
Upload Task - An enum representing the possible upload tasks to be performed by an uploader.
- Upload
Result - The result of an attempted ping upload.
- Upload
Task Action - Communication back whether the uploader loop should continue.
Functions§
- chunked_
log_ info - Logs payload in one go (all other OS).
- process_
metadata - Processes a ping’s metadata.
Type Aliases§
- Header
Map - A representation for request headers.