File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,32 @@ specifications with following limitations:
1010- HTTP Client&Server: Pipelined Requests/Responses not supported.
1111- HTTP Client&Server: GET Request not supported.
1212
13+ Also provides command-line tool ` jsonrcp2client ` .
14+
1315
1416## Installation
1517
1618``` sh
1719go get github.com/powerman/rpc-codec/...
1820```
21+
22+ ## Usage
23+
24+ ### jsonrcp2client
25+
26+ ```
27+ $ jsonrcp2client
28+ Usage: jsonrpc2client [flags] method params-as-json
29+ -http.endpoint string
30+ service endpoint as url
31+ -notification
32+ send notification request
33+ -tcp.addr string
34+ service endpoint as host:port
35+ -transport string
36+ transport (stdin|tcp|http) (default "http")
37+ -version
38+ print version
39+ $ jsonrcp2client -http.endpoint https://example.com/rpc method.name '{"namedArg":"value"}'
40+ $ jsonrcp2client -http.endpoint https://example.com/rpc method.name '["positionalValue"]'
41+ ```
You can’t perform that action at this time.
0 commit comments