Reader abstracts the transport mechanics from the JSON RPC protocol. A Conn reads messages from the reader it was provided on construction, and assumes that each call to Read fully transfers a single message, or returns an error. A reader is not safe for concurrent use, it is expected it will be use
| 21 | // A reader is not safe for concurrent use, it is expected it will be used by |
| 22 | // a single Conn in a safe manner. |
| 23 | type Reader interface { |
| 24 | // Read gets the next message from the stream. |
| 25 | Read(context.Context) (Message, error) |
| 26 | } |
| 27 | |
| 28 | // Writer abstracts the transport mechanics from the JSON RPC protocol. |
| 29 | // A Conn writes messages using the writer it was provided on construction, |
no outgoing calls
no test coverage detected
searching dependent graphs…