1
0
mirror of https://github.com/golang/go synced 2024-11-05 11:36:10 -07:00
go/internal/jsonrpc2
Ian Cottrell 17cc17e0bb internal/jsonrpc2: remove the legacy interface
We can do cancelling at the top level handler now, it can drop the cancel
messages themselves before they enter the queue stage, and also track
all the events as they flow through it.
The ugly part is the OnCancelled interface, which is a bit clunky.

Change-Id: I3fa972198625fb3517fdecc740d1a3fdb19a188a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/226959
Run-TryBot: Ian Cottrell <iancottrell@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-04-06 14:43:58 +00:00
..
servertest internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00
handler.go internal/jsonrpc2: remove the legacy interface 2020-04-06 14:43:58 +00:00
jsonrpc2_test.go internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00
jsonrpc2.go internal/jsonrpc2: remove the legacy interface 2020-04-06 14:43:58 +00:00
serve_test.go internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00
serve.go internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00
stream.go internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00
wire.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00