1.0.0 • Published 4 years ago

@tomyjwu/calc-grpc v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

calc-grpc

This is base on https://github.com/grpc-ecosystem/grpc-cloud-run-example

This packaged calculate gRPC client as a library, to hide the grpc proto loading, connecting server, ...etc details

usage

const calculate = require('@tomyjwu/calc-grpc');
calculate(argv.server, argv.operation.toUpperCase(), argv.a, argv.b, argv.plaintext).then((value) => {
      console.log(value);
    }, (error) => {
      console.error(error);
    });