Commit Graph

212 Commits

Author SHA1 Message Date
Joshua Humphries d641a66208
fix flaky test where code can be 'cancelled' unexpectedly, instead of some error code provided by the server (#83) 2019-02-27 20:28:43 -05:00
Joshua Humphries ce84976d3c
fix typo in readme
fixes #79
2019-02-27 18:16:55 -05:00
Joshua Humphries b292d5aef8
add Go 1.12 to travis config (#82) 2019-02-27 17:31:54 -05:00
Joshua Humphries 5516a45602
update proto and grpc deps (#81)
Fixes the build by updating grpc (and deps) and using new, non-deprecated function
2019-02-27 17:30:44 -05:00
Andrew McCallum 4a329f3b13 add Homebrew installation method to README (#77) 2019-01-23 10:50:39 -05:00
Joshua Humphries 1c6532c060
fix minor issues caught by staticcheck (#76) 2019-01-03 10:09:24 -05:00
Joshua Humphries 0f9e76c978
ignore deprecated check for now (#75) 2018-12-17 10:47:17 -05:00
Joshua Humphries 9fa2fce63b
make method invocation resilient to errors trying to load all files from server (#74) 2018-12-13 11:44:43 -05:00
Joshua Humphries 70e9bba1b8
fix typo in Makefile (#72) 2018-12-12 10:10:23 -05:00
Joshua Humphries d86529bb4f
don't use TLS 1.3, which isn't quite right yet in Go tip (#66) 2018-11-15 20:27:01 -05:00
Joshua Humphries 0dea37ee70
on error reading request, bidi stream would hang (#63) 2018-11-01 14:32:56 -04:00
Joshua Humphries dfa06f4410
several Go libraries, including gRPC and golang.org/x/net/http2, no longer support Go 1.8 and older (#64) 2018-11-01 14:24:33 -04:00
Joshua Humphries 22ce2f04fd
account type in OpenAccount RPC was ignored (#61) 2018-11-01 13:52:58 -04:00
Joshua Humphries 1e8e50f4f8
make MakeTemplate more robust (#60) 2018-10-22 22:59:11 -04:00
Joshua Humphries 7cabe7a9d0
move more stuff from cmd to package (#59) 2018-10-19 14:47:25 -04:00
Joshua Humphries 9a4bbacdd6
some pre-factoring and small fixes (#58)
* organize into multiple files
* make listing methods show fully-qualified names
* address small feedback from recent change (trim then check if empty)
2018-10-18 23:51:38 -04:00
Joshua Humphries 69ea782936
reconcile with recent change to "describe" output 2018-10-18 13:54:51 -04:00
Joshua Humphries 58cd93280e
use proto syntax for describe (#57) 2018-10-18 13:50:44 -04:00
Joshua Humphries a337c1afcf
improve flag doc with go 1.10+ (#56) 2018-10-18 13:16:33 -04:00
Joshua Humphries e00ef3eb7c
add option to support text format (#54)
* augments grpcurl package API in order to handle multiple formats
* deprecates old signature for InvokeRpc
* add command-line flag to use protobuf text format instead of JSON
* use AnyResolver when marshaling to/from JSON
2018-10-16 21:26:16 -04:00
Joshua Humphries 397a8c18ca
update README (#55)
* Revises the sections that talk about descriptor sources, making them more consistent.
* Adds a link to the Gophercon 2018 talk on grpcurl.
* Improve  installation section, mentioning versioned Go.
2018-10-16 12:56:40 -04:00
Joshua Humphries 554e69be2c
use correct package name for golint (#53) 2018-10-12 09:06:35 -04:00
Ryo Nakao 2dd771c49e fix typo in InvokeRpc() comment (#50) 2018-09-26 22:02:34 -04:00
Leigh McCulloch 79a550b858 add goreleaser (#49)
* add goreleaser

Add a goreleaser configuration file that builds binaries for Linux,
MacOS and Windows, for 32bit (x86/386) and 64bit (x64/amd64). The
binaries will be archived into a tar.gz/zip file along with the LICENSE
file.

The `dist/` directory will be written to by goreleaser with the binaries
during the build process, so it's also been added to .gitignore.

To build all the binaries and release them to GitHub:
1. Tag the release. e.g. `git tag -a v1.0.0 -m 'First release'`
2. Generate a GitHub Personal Access Token. See https://github.com/settings/tokens.
3. Push the release to GitHub. e.g. `git push origin v1.0.0`
4. Make the release, which will publish binaries to the GitHub "Releases" page. e.g.  `GITHUB_TOKEN=xxxxxxx... make release`

* add -version flag

Run `grpcurl -version` to see the release version. Use `make install` to build a binary that shows the version based on current git hash (which will show a version number if HEAD is a release tag and otherwise uses `git describe` to summarize the version).
2018-09-25 09:34:02 -04:00
Joshua Humphries d4d048fade
support go modules (#48)
* support go modules
- use Go 1.11 (with and without module support) in CI
- add go.mod and go.sum files
- with modules in Go 1.11, can't rely on GOPATH directory layout, so just copy test.proto into this repo
2018-09-14 20:18:53 -04:00
Joshua Humphries 6198551381
add bankdemo, from Gophercon 2018 demo (#45) 2018-09-07 18:21:02 -04:00
Jean de Klerk 1e72fa2cd1 Point to server reflection docs (#38)
Service reflection has very poor SEO and unfortunately not great discoverability. Since this package is an entry-point for service reflection, this helps make the process of finding this information easier.
2018-08-08 10:43:18 -04:00
Joshua Humphries 75759db659
only run static checks for Go 1.10 build, not all of them (#42) 2018-07-16 15:46:32 -04:00
Joshua Humphries 9d19f10af7
fix doc section regarding protoset and proto sources
There was a paragraph that mentioned protoset files but failed to mention support for proto source files. Now fixed.
2018-07-16 14:44:31 -04:00
Jean de Klerk b709105be9 allow period at the start of a symbol (#40) 2018-07-06 22:41:22 +02:00
Joshua Humphries 2ff725abb2
add -d examples to README
resolves #37
2018-07-06 09:13:34 +02:00
Joshua Humphries 819d39047c
add go report card badge to README 2018-06-08 17:22:08 -04:00
Joshua Humphries 7e882c8a7c
update README.md (#36)
- Adds a travis CI badge at the top.
- Adds an "installation" section that should address #30
- Adds content about using proto source files.
2018-05-31 12:48:30 -04:00
Joshua Humphries 00643a3fb8
fix race condition in bidi tests (#35) 2018-05-29 11:04:40 -04:00
KUOKA Yusuke 75dcbf0d4c Allow passing :authority pseudo header (#33) 2018-05-24 12:18:45 -04:00
Joshua Humphries ec219b3c15
allow the use of proto source files directly, instead of having to compile to protoset files (#32) 2018-05-23 14:13:24 -04:00
Josh Humphries e6ac789274 grpclog.Printf deprecated; use Info instead 2018-05-08 10:08:35 -04:00
Joshua Humphries ca5693f42c
support unix sockets (#26) 2018-03-27 11:24:35 -04:00
Joshua Humphries 09a863d763
fix Makefile to run predeclared check (#24) 2018-03-25 16:27:08 -04:00
Joshua Humphries 224c3acd1d
enable more linters in CI; fix some issues caught by them (#23) 2018-03-24 10:33:21 -04:00
Johannes Kohnen f203c2cddf Flag to override server name when validating TLS cert (#20) 2018-03-22 20:47:51 -04:00
Joshua Humphries 585cd1bae8
print summary message only when verbose flag is set (#19) 2018-03-13 16:49:09 -04:00
Joshua Humphries f7eb17819d
add more control over request metadata; add message templates (#17)
* add more control over request metadata between reflection calls and main RPC invocation
* add flag to print a message template (when describing message types)
* relax some command-line argument issues to warnings
2018-03-08 11:29:06 -05:00
Frederik 99a3346b94 Allow reflection calls to carry headers (#15) 2018-03-02 12:01:37 -05:00
Joshua Humphries fd0131d472
don't bother testing 1.6
I have not been able to figure out the severe flakiness in Go 1.6. And I'm tired of digging for it. Go 1.6 is two years old now, so I suppose it's not valuable to support it. (I had added to the matrix originally just to match the actual grpc-go project, which also supports Go 1.6.)

It's always the same issue: `TestPlainText` in `tls_settings_test.go`. And the behavior appears to be as if the server keeps closing the connection. But it doesn't plague any other test case, which is very mysterious. It's as if the server were configured for TLS and closes the connection when it sees the HTTP/2 preface (which doesn't look like a TLS handshake). But I just don't see how that could be possible, so it must be something else going awry.
2018-03-02 11:58:30 -05:00
Peter Edge ceba64b971 Delete references to json.RawMessage (#12) 2018-02-20 15:03:05 -05:00
Joshua Humphries 620796528e
fix nil dereference (#10) 2018-02-19 22:28:26 -05:00
Joshua Humphries 2a6ef4e19e
attempt to fix flaky test (#8) 2018-02-19 18:22:19 -05:00
Joshua Humphries 46121b1305
fix bad port number in README examples (#7) 2018-02-19 14:01:04 -05:00
Peter Edge 9f7485fd04 Add Makefile (#5)
Replaces ci.sh, provides add'l static analysis (which isn't yet enabled in CI since the code doesn't yet pass them all)
2018-02-17 18:15:13 -05:00