pkg_callgrpcrun 0.0.9 copy "pkg_callgrpcrun: ^0.0.9" to clipboard
pkg_callgrpcrun: ^0.0.9 copied to clipboard

pkg_callgrpcrun for pkg fix port

TODO: gRPC is a modern, open source, high performance Remote Procedure Call (RPC) framework that can run in any environment. It allows you to directly call a client application as if it was a local service. You can also efficiently stream data between services. Moreover, Google APIs support requests via gRPC, allowing you to build efficient, high-throughput systems.

Features #

TODO: In this blogpost, we’ll introduce the gRPC protocol and how you can use them in Cloud Run!

Getting started #

TODO: gRPC clients and servers can run and talk to each other in a variety of environments — from servers inside Google, to your own desktop — and can be written in any of gRPC’s supported languages. For example, you can easily create a gRPC server in Java with clients in Go, Python, or Ruby.

Usage #

TODO: ** For auth midleware https://www.npmjs.com/package/ags_authrest

import 'package:pkg_callgrpcrun/pkg_callgrpcrun.dart';

    final callgrpc = Cloudrun();

    callgrpc.SECERT_JWT = 'ihavealongpassword';
    callgrpc.R_USER = 'admin';
    callgrpc.Uri = 'localhost';

    var pathRoute = "getData";

    var bodyData = {
      "phone": "+66885257777",
      "otpCode": "778747",
      "refCode": "orxh4f",
      "fromBU": "Qsms",
    };

    var data = await callgrpc.callgrpc(bodyData, pathRoute);
    // data = json.decode(data);
    // var data2 = json.decode(data);
    print(data);

0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

pkg_callgrpcrun for pkg fix port

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

ags_authrest2, flutter, grpc, protobuf

More

Packages that depend on pkg_callgrpcrun