Crate psup_json_rpc

Source
Expand description

Adapter for the process supervisor (psup) to serve JSON-RPC over a split socket.

Structs§

Identity
Worker identity payload.

Enums§

Message
Encodes whether a packet is a request or a response so that we can do bi-directional communication over the same socket.

Functions§

call
Prepare a JSON RPC method call wrapped as a Message.
notify
Prepare a JSON RPC notification wrapped as a Message.
serve
Read and write line-delimited JSON from a stream executing via a JSON RPC server.
write
Write a message to the writer as a JSON encoded line.