grpc_cli

command module
v0.0.0-...-db4bbf2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 2 Imported by: 0

README

grpc_cli

Simple gRPC client

Installation
go get -u github.com/alexej-v/grpc_cli
Run
grpc_cli --port 7002 --file protofile_name.proto --path ~/Path --path ~/Path2
Usage example:

Create connection:

grpc_cli --host <host-with-no-http-in-url> --port <port> --path <proto-file-folder> --file <protofile-filename>

Set package and service, use for hints:

package <package-name> 
service <service-name>

Add headers, if needed:

set header Authorization Bearer <token>

and, at last, call:

call GetFullOrder {"order_id": "<order_id>"}
Example:
grpc_cli --host example.host.org --port 82 --path ./ --file serviceName.proto
package host.exampe.api.service
service ServiceName
set header Authorization Bearer JUG9435rho.47hTGfghdsuRYBUhgNFEgfgjhdWMUJGdghdfgghggFfdghW
call GetOrder {"order_id": "<order_id>"}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL