Expand description
Protocol message parsing and formatting for the Cortex socket protocol.
Messages are newline-delimited JSON over Unix domain socket.
Structs§
- Handshake
Result - Handshake response.
- Pool
Status - Pool status info.
- Request
- A parsed protocol request.
- Status
Result - Status response.
Enums§
- Method
- Protocol methods supported by Cortex.
Functions§
- format_
error - Format an error response as JSON string (newline-terminated).
- format_
response - Format a successful response as JSON string (newline-terminated).
- parse_
request - Parse a JSON request line into (id, method, params).