1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-16 04:04:56 +02:00
No description
Find a file
Cornelius Weig 366fbb5207
Break the Call method into a dispatcher and waiter (#41)
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.
2021-02-01 10:28:50 +02:00
.github/workflows LSIF Indexing Campaign 2020-04-29 16:57:20 +00:00
websocket fix some golangci-lint, revive linter warnings 2019-11-02 22:31:31 +02:00
.travis.yml Use the last stable Go on Travis CI (#21) 2018-08-31 09:04:50 -07:00
async.go typo in AsyncHandler docstring 2017-02-21 17:51:53 +02:00
call_opt.go Add CallOpt SetID 2017-01-31 11:08:53 +02:00
codec_test.go Add pluggable transport interface + WebSocket support 2016-12-17 18:35:34 -08:00
conn_opt.go minor logging fixes 2019-11-07 23:44:16 +02:00
go.mod support for go 1.12+ (#30) 2019-11-03 12:56:29 -08:00
go.sum add go module, simplify some cleanups 2019-11-02 21:39:58 -07:00
handler_with_error.go minor logging fixes 2019-11-07 23:44:16 +02:00
jsonrpc2.go Break the Call method into a dispatcher and waiter (#41) 2021-02-01 10:28:50 +02:00
jsonrpc2_test.go fix some golangci-lint, revive linter warnings 2019-11-02 22:31:31 +02:00
LICENSE initial commit 2016-10-11 15:56:18 +02:00
object_test.go minor logging fixes 2019-11-07 23:44:16 +02:00
README.md Added link to the godoc reference (#19) 2018-08-22 01:37:14 -07:00
stream.go remove content type from vscode object codec (#18) 2018-03-29 15:25:20 +02:00

jsonrpc2: JSON-RPC 2.0 implementation for Go Build Status Sourcegraph GoDoc

Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.

This package is experimental until further notice.

Open the code in Sourcegraph

Known issues

  • Batch requests and responses are not yet supported.