Skip to content

Commit 5dd47f5

Browse files
committed
doc: update README
1 parent fe16ac0 commit 5dd47f5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1719
go 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+
```

0 commit comments

Comments
 (0)