Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

gcall

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gcall

Simple gRPC command line interface


Version published
Maintainers
1
Created
Source

gcall

Simple gRPC command line interface

Installation

$ npm install -g gcall

Usage

Usage: gcall [options] <method>

  Options:

    -h, --help                      output usage information
    -V, --version                   output the version number
    -p, --proto <file>              Path to protocol buffer definition.
    -S, --service <name>            Service name. Default is the 0th found in definition.
    -h, --host <host>               The service host.
    -d, --data <data>               Input data, otherwise standard input.
    -s, --secure                    Use secure options.
    -o, --output <file>             Output path, otherwise standard output.
    -j, --json <jsonpath>           JSONPath for request stream parsing. Default: '*'.
    -a, --array                     Output response stream as an array. Default: false. Outputs data separated by newlines.
    -m, --metadata <metadata data>  Metadata value.

Examples

List methods in a service

$ gcall -p ./test/protos/route_guide.proto
› GetFeature (Point) returns (Feature)
› ListFeatures (Rectangle) returns (stream Feature)
› RecordRoute (stream Point) returns (RouteSummary)
› RouteChat (stream RouteNote) returns (stream RouteNote)

Simple request / response caller

$ gcall \
-p ./test/protos/route_guide.proto \
-d "{\"latitude\":409146138,\"longitude\":-746188906}" \
-h 0.0.0.0:50051 GetFeature
{ name: 'Berkshire Valley Management Area Trail, Jefferson, NJ, USA',
  location: { latitude: 409146138, longitude: -746188906 } }

Keywords

FAQs

Package last updated on 11 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc