mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-06-16 04:04:56 +02:00
No description
Before, the Call method dispatched the JSON-RPC request and waited until completion of the request before returning. This made it difficult to release any locks that need to be released upon dispatch. Now, the Call method is broken into a DispatchCall and Wait pair. DispatchCall returns a proxy to the internal call object as soon as the request is dispatched. When appropriate, the caller can invoke the Wait method on this proxy to block until the result is ready. The original Call method is not changed, but now implemented by these primitives. |
||
|---|---|---|
| .github/workflows | ||
| websocket | ||
| .travis.yml | ||
| async.go | ||
| call_opt.go | ||
| codec_test.go | ||
| conn_opt.go | ||
| go.mod | ||
| go.sum | ||
| handler_with_error.go | ||
| jsonrpc2.go | ||
| jsonrpc2_test.go | ||
| LICENSE | ||
| object_test.go | ||
| README.md | ||
| stream.go | ||
jsonrpc2: JSON-RPC 2.0 implementation for Go

Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.
This package is experimental until further notice.
Known issues
- Batch requests and responses are not yet supported.