1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-18 05:00:03 +02:00
Commit graph

3 commits

Author SHA1 Message Date
lhchavez
83d34e6888 Make the RequestField.Value an interface{}
This change trades an extra JSON unmarshal in `Request.UnmarshalJSON`
for several little casts, checks, and marshals.
2021-07-28 13:16:16 +00:00
lhchavez
f987817f79 Add a way to specify more non-standard-compliant fields to Request
This change introduces `ExtraField`, a `CallOption` that can add
arbitrary fields to the top-level JSON-RPC Request message.

Fixes: https://github.com/sourcegraph/jsonrpc2/issues/49
2021-07-26 21:48:04 +00:00
Sam Herrmann
08fd77d0de
Add StringID call option (#44)
Fixes #43
2021-04-26 09:12:26 +02:00