An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/reddec/jsonrpc2

JSON-RPC 2.0 supporting library Main object - Router doesn't need any kind of initialization. Just use `var router Router`. There are two ways how to register service: dynamical and static. This is recommended way. jsonrpc2-gen tool will generate type-safe wrapper with positional and named arguments support. Tool can be installed by `go get -v github.com/reddec/jsonrpc2/cmd/...` or by other method (see README.md) For example: Assume you have an interface file (`user.go`) like this: Just invoke `jsonrpc2-gen -i user.go -o user_gen.go -I User -p abc` You will get `user_gen.go` file like that: By using RegisterPositionalOnly or RegisterNamedOnly. This two functions are heavily relying on reflection so don't use in a high-load environment. Helper `Handler` can expose JSON-RPC over HTTP with supported methods POST, PUT, PATCH. For other methods server will return MethodNotAllowed (405)
22 versions
Latest release: almost 5 years ago
4 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/reddec/jsonrpc2

View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/reddec%2Fjsonrpc2

Dependent Repos 3

reddec/trusted-cgi
Lightweight runner for lambda functions/apps in CGI like mode

Size: 437 KB - Last synced: 5 days ago - Pushed: 7 months ago

tinc-boot/tinc-desktop

Size: 36.1 KB - Last synced: 11 months ago - Pushed: almost 5 years ago

tinc-boot/tinc-web-boot
Web desktop tinc control panel and management

Size: 651 KB - Last synced: 5 days ago - Pushed: almost 5 years ago

WillyPillow/trusted-cgi Fork of reddec/trusted-cgi
Lightweight runner for lambda functions/apps in CGI like mode

Size: 423 KB - Last synced: over 1 year ago - Pushed: about 3 years ago