Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/semior001/grpcwget
small utility to download files through grpc
https://github.com/semior001/grpcwget
Last synced: about 2 months ago
JSON representation
small utility to download files through grpc
- Host: GitHub
- URL: https://github.com/semior001/grpcwget
- Owner: Semior001
- License: mit
- Created: 2022-02-17T20:21:09.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-18T01:51:55.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T11:11:44.750Z (7 months ago)
- Language: Go
- Size: 2.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grpcwget [![Go](https://github.com/Semior001/grpcwget/actions/workflows/.go.yaml/badge.svg)](https://github.com/Semior001/grpcwget/actions/workflows/.go.yaml) [![codecov](https://codecov.io/gh/Semior001/grpcwget/branch/master/graph/badge.svg?token=nLxLt9Vdyo)](https://codecov.io/gh/Semior001/grpcwget) [![go report card](https://goreportcard.com/badge/github.com/Semior001/grpcwget)](https://goreportcard.com/report/github.com/Semior001/grpcwget) [![Go Reference](https://pkg.go.dev/badge/github.com/Semior001/grpcwget.svg)](https://pkg.go.dev/github.com/Semior001/grpcwget)
Small utility to download files through grpc. Currently, only files received via
[google.api.HttpBody](https://github.com/googleapis/googleapis/blob/master/google/api/httpbody.proto)
are supported.### install
`go install github.com/Semior001/[email protected]` or via downloading the binary
in the releases.## options
```
Application Options:
-p, --protoset= location to pb file
-H, --header= headers to add to request
-d, --body= body of GRPC request
-a, --addr= address to GRPC server
-m, --method= full path to method
-o, --output= location to output file, current dir by default (default: .)
--timeout= request timeout
--dbg turn on debug mode
```### example
```bash
grpcwget -p api.pb -a localhost:9000 \
-m semior.some.package.v1.Service/DownloadFile \
-d '{"someparam": "someval"}' \
-o some_response.pdf
```