当前位置:网站首页>Grpc local test joint debugging tool bloomrpc

Grpc local test joint debugging tool bloomrpc

2022-06-24 09:37:00 MonkeyKing_ sunyuhua

Local development grpc Project , If there is no easy-to-use tool for local joint commissioning , It is difficult to complete the joint debugging and testing of local code .
Now let's introduce an easy-to-use tool BloomRPC

1、 Download and install

https://github.com/bloomrpc/bloomrpc/releases

2、 Will project's proto Import in

 Insert picture description here

3、 It will generate automatically

 Insert picture description here

4、 Edit and submit

{
    
  "resource_type": 8,
  "backup": {
    
    "time": {
    "seconds":1655869901,"nanos":0},
    "start_time": {
    "seconds":1655868901,"nanos":0},
    "end_time": {
    "seconds":1655869901,"nanos":0},
    "tenant_id": 2247,
    "size": 1073741824,
    "unit": "bytes",
    "tags": {
    
      "tenant_id": 2247,
       "size": 1073741824
    }
  }
}

Note that the time format is special , Have oneself RPC The way of writing

 "time": {
    "seconds":1655869901,"nanos":0}
原网站

版权声明
本文为[MonkeyKing_ sunyuhua]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240820511664.html