An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.3% on proxy.golang.org
Top 1.8% dependent packages on proxy.golang.org
Top 2.1% dependent repos on proxy.golang.org
Top 7.7% forks on proxy.golang.org

proxy.golang.org : github.com/AdamSLevy/jsonrpc2/v12

Package jsonrpc2 is a complete and strictly conforming implementation of the JSON-RPC 2.0 protocol for both clients and servers. https://www.jsonrpc.org. Clients use the provided types, optionally along with their own custom data types for making Requests and parsing Responses. The Request and Response types are defined so that they can accept any valid types for "id", "params", and "result". Clients can use the Request, Response, and Error types with the json and http packages to make HTTP JSON-RPC 2.0 calls and parse their responses. Servers define their own MethodFuncs and associate them with a method name in a MethodMap. Passing the MethodMap to HTTPRequestHandler() will return a corresponding http.Handler which can be used with an http.Server. The http.Handler handles both batch and single requests, catches all protocol errors, and recovers from any panics or invalid return values from the user provided MethodFunc. MethodFuncs only need to catch errors related to their function such as Invalid Params or any user defined errors for the RPC method. This example makes all of the calls from the examples in the JSON-RPC 2.0 specification and prints them in a similar format.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/%21adam%21s%21levy/jsonrpc2/v12
License: MIT
Latest release: about 6 years ago
First release: about 6 years ago
Namespace: github.com/AdamSLevy/jsonrpc2
Dependent packages: 9
Dependent repositories: 6
Stars: 11 on GitHub
Forks: 6 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 26 days ago

    Loading...
    Readme
    Loading...