M. J. Fromberger
dbe2146d0a
Add package jsontypes that implements a subset of the custom libs/json package. Specifically it handles encoding and decoding of interface types wrapped in "tagged" JSON objects. It omits the deep reflection on arbitrary types, preserving only the handling of type tags wrapper encoding. - Register interface types (Evidence, PubKey, PrivKey) for tagged encoding. - Update the existing implementations to satisfy the type. - Register those types with the jsontypes registry. - Add string tags to 64-bit integer fields where needed. - Add marshalers to structs that export interface-typed fields. |
3 years ago | |
---|---|---|
.. | ||
testdata | p2p: renames for reactors and routing layer internal moves (#6547) | 3 years ago |
conn_go110.go | p2p: rename pexV2 to pex (#7088) | 3 years ago |
conn_notgo110.go | p2p: rename pexV2 to pex (#7088) | 3 years ago |
connection.go | reactors: skip log on some routine cancels (#7556) | 3 years ago |
connection_test.go | testing: pass testing.T to assert and require always, assertion cleanup (#7508) | 3 years ago |
evil_secret_connection_test.go | cleanup: Reduce and normalize import path aliasing. (#6975) | 3 years ago |
secret_connection.go | Move libs/async to internal/libs/async. (#7449) | 3 years ago |
secret_connection_test.go | rpc: simplify the encoding of interface-typed arguments in JSON (#7600) | 3 years ago |