Git Product home page Git Product logo

tgrpc

tg: tgrpc in termial

为了方便测试,可开启grpc服务代理,参考github.com/tgrpc/ngrpc

使用方法,请看tgrpc/doc

usage

tg -c tgrpc.toml
DEBU[0000] dial tcp:localhost:2080 ...
DEBU[0000] use exist desc                                FileDescriptorSet=.helloworld.Greeter.pbin
ERRO[0000] time cost: 4.05723ms more than 2 ms;
helloworld.Greeter/SayHello ==> {
	"message": "Hello tgrpc-tg1"
}
tg -s
DEBU[0000] dial tcp:localhost:2080 ...
DEBU[0000] use exist desc                                FileDescriptorSet=.helloworld.Greeter.pbin
ERRO[0000] time cost: 3.41066ms more than 2 ms;
DEBU[0000] dial tcp:localhost:2080 ...
DEBU[0000] use exist desc                                FileDescriptorSet=.helloworld.LangService.pbin
DEBU[0000] time cost: 1.007471ms / 2 ms;
DEBU[0000] time cost: 1.008415ms / 2 ms;
WARN[0000] time cost: 1.849676ms nearby 2 ms;
WARN[0000] time cost: 1.921683ms nearby 2 ms;
WARN[0000] time cost: 1.967108ms nearby 2 ms;
WARN[0001] time cost: 1.545166ms nearby 2 ms;
WARN[0001] time cost: 1.77252ms nearby 2 ms;
WARN[0001] time cost: 1.63466ms nearby 2 ms;
helloworld.Greeter/SayHello size: 3
 avg: 1.863101 ms
 max: 1.967108 ms
 min: 1.772520 ms

todo

  1. 调用链状态显示

roadmap

  1. 验证接口返回结果
  2. 验证接口响应时间
  3. 方法调用闭环,支持利用上次返回结果构建参数
  4. 接口响应时间统计:最大、最小、平均耗时

origin

部分代码参考github.com/uber/prototool

tgrpc's Projects

desc icon desc

search descriptors from go source code for tgrpc

grpcurl icon grpcurl

Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.