Anton Kaliaev
05e1a22d5b
encode params before sending in JSONRPC
2017-03-09 13:46:48 +04:00
Anton Kaliaev
cf11e6ba65
add CHANGELOG
2017-03-09 12:43:24 +04:00
Anton Kaliaev
1ddb60b6e7
refactor jsonParamsToArgs
...
Suggested in https://github.com/tendermint/go-rpc/pull/9#discussion_r105098390
2017-03-09 12:23:21 +04:00
Anton Kaliaev
fed84f875c
fix jsonParamsToArgsWS index error
...
Error from tendermint:
```
panic: runtime error: index out of range
goroutine 82 [running]:
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-rpc/server.jsonParamsToArgsWS(0xc4200960e0, 0xc42024d4a0, 0xc420215380, 0x3, 0x0, 0x0, 0xc420215383, 0x9, 0xc42024d4a0, 0xf1ecc0, ...)
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-rpc/server/handlers.go:184 +0x654
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-rpc/server.(*wsConnection).readRoutine(0xc4201fd0e0)
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-rpc/server/handlers.go:496 +0x3a9
created by github.com/tendermint/tendermint/vendor/github.com/tendermint/go-rpc/server.(*wsConnection).OnStart
/home/vagrant/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-rpc/server/handlers.go:377 +0x45
```
2017-03-08 17:55:08 +04:00
Anton Kaliaev
1842e03315
revert using local import
...
this breaks the client's code (e.g. tendermint)
2017-03-08 17:33:46 +04:00
Anton Kaliaev
d033cd54b8
add editorconfig
2017-03-08 17:17:42 +04:00
Anton Kaliaev
2dc6ab3896
use golang default if an arg is missing (Refs #7 )
2017-03-08 17:16:01 +04:00
Anton Kaliaev
6d66cc68ed
make sure we are using correct server
...
also remove it afterwards
2017-03-08 16:55:15 +04:00
Anton Kaliaev
51d760f29f
use local import for testing
2017-03-08 16:23:38 +04:00
Anton Kaliaev
22ba8bdef8
fix Call method signature in HTTPClient interface
2017-03-08 10:26:13 +04:00
Anton Kaliaev
d43e3db978
fix circleci
2017-03-07 19:28:00 +04:00
Anton Kaliaev
26ccb4c94a
remove private call methods
...
Q: what was the reason to create them?
2017-03-07 19:27:52 +04:00
Anton Kaliaev
c128957723
"must remove file for test to run again" - no way I am doing this by hands, too lazy :)
2017-03-07 19:27:38 +04:00
Anton Kaliaev
66867bf949
remove "rpc" prefix from package imports
2017-03-07 19:27:32 +04:00
Anton Kaliaev
e1d5873bdf
support key-value params in JSONRPC (Refs #1 )
...
More changes:
- remove Client interface (reason: empty)
- introduce HTTPClient interface, which can be used for both ClientURI
and ClientJSONRPC clients (so our users don't have to create their own) (Refs #8 )
- rename integration tests script to `integration_test.sh`
- do not update deps on `get_deps`
2017-03-07 19:27:27 +04:00
Anton Kaliaev
b03facd828
add Dockerfile
2017-03-07 18:34:13 +04:00
Ethan Buchman
fcea0cda21
Merge pull request #6 from tendermint/develop
...
v0.6.0
2017-01-12 22:02:40 -05:00
Ethan Buchman
6177eb8398
love you circley
2017-01-12 22:01:20 -05:00
Ethan Buchman
ac443fa61f
run tests from bash script
2017-01-12 21:59:02 -05:00
Ethan Buchman
08f2b5bc84
get deps for testing
2017-01-12 21:51:34 -05:00
Ethan Buchman
de56442660
Merge branch 'master' into develop
2017-01-12 21:40:43 -05:00
Ethan Buchman
94fed25975
fix test
2017-01-12 10:22:23 -05:00
Ethan Buchman
0eb278ad3b
version bump 0.6.0
2017-01-12 00:13:20 -05:00
Ethan Buchman
b494cc5219
Merge pull request #5 from mappum/develop
...
Fix hex string handling
2017-01-12 00:12:11 -05:00
Matt Bell
4d7aa62a10
Added test for unexpected hex string type HTTP args
2017-01-07 20:40:45 -08:00
Matt Bell
86506cd4f8
Handle quoted and hex string type HTTP args for both 'string' and '[]byte' type function args
2017-01-07 20:40:29 -08:00
Matt Bell
af1212897c
Exit early in bash tests
2017-01-07 14:00:27 -08:00
Matt Bell
34a806578a
Handle hex strings and quoted strings in HTTP params
...
Use 0x-prefixed hex strings in client
server: Decode hex string args
Encode all string args as 0x<hex> without trying to encode as JSON
Added tests for special string arguments
Fix server handling quoted string args
Added string arg handling test cases to bash test script
2017-01-07 13:59:33 -08:00
Jae Kwon
161e36fd56
QuitService->BaseService
2016-10-28 12:04:58 -07:00
Ethan Buchman
e6e3853dc7
Merge pull request #3 from tendermint/develop
...
use EventSwitch interface; less logging
2016-10-20 21:31:26 -04:00
Ethan Buchman
855255d73e
use EventSwitch interface; less logging
2016-10-10 03:22:34 -04:00
Ethan Buchman
479510be0e
support full urls (with eg tcp:// prefix)
2016-08-10 01:13:13 -04:00
Ethan Buchman
dea910cd3e
Makefile: go test --race
2016-07-22 01:15:52 -04:00
Ethan Buchman
39ee59c26e
server: return result with error
2016-07-22 01:13:16 -04:00
Ethan Buchman
a8ac819139
link issue from readme
2016-06-23 20:40:16 -04:00
Ethan Buchman
a44e0e0f4b
add test example
2016-06-23 20:37:35 -04:00
Ethan Buchman
0c70a4636a
add better docs to readme
2016-06-23 20:33:04 -04:00
Ethan Buchman
7ea86f6506
fix test race and update readme
2016-06-21 15:19:56 -04:00
Jae Kwon
1d9e89812a
Remove go-alert dependency
2016-05-08 14:58:28 -07:00
Ethan Buchman
e8538d606a
add blank client interface
2016-05-04 10:39:43 -04:00
Ethan Buchman
1410693eae
support unix domain websockets
2016-02-19 02:05:24 +00:00
Ethan Buchman
74130008f7
deduplicate dialFunc
2016-02-19 00:20:20 +00:00
Ethan Buchman
6607232a5d
add support for unix sockets
2016-02-18 22:45:55 +00:00
Jae Kwon
1370f89864
Fix bug in receiveEventsRoutine error handling
2016-02-08 02:20:34 -08:00
Jae Kwon
8b7969d6ea
Add comments about goroutine-safety
2016-02-08 00:58:12 -08:00
Ethan Buchman
45f57198cc
client: wsc.String()
2016-02-03 02:01:28 -05:00
Ethan Buchman
fbc5ac8052
print method in client log
2016-01-21 23:03:39 -05:00
Ethan Buchman
b9eec7e438
version bump
2016-01-20 13:07:57 -05:00
Ethan Buchman
14735d5eb5
RawMessage fix
2016-01-13 22:16:56 -05:00
Ethan Buchman
91c734d02e
client: ResultsCh chan json.RawMessage, ErrorsCh
2016-01-13 21:21:16 -05:00