gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-grpc-middleware/testing/testproto/test.proto (about)

     1  syntax = "proto3";
     2  
     3  package mwitkow.testproto;
     4  
     5  
     6  message Empty {
     7  }
     8  
     9  message PingRequest {
    10    string value = 1;
    11    int32 sleep_time_ms = 2;
    12    uint32 error_code_returned = 3;
    13  }
    14  
    15  message PingResponse {
    16    string Value = 1;
    17    int32 counter = 2;
    18  }
    19  
    20  service TestService {
    21    rpc PingEmpty(Empty) returns (PingResponse) {}
    22  
    23    rpc Ping(PingRequest) returns (PingResponse) {}
    24  
    25    rpc PingError(PingRequest) returns (Empty) {}
    26  
    27    rpc PingList(PingRequest) returns (stream PingResponse) {}
    28  
    29    rpc PingStream(stream PingRequest) returns (stream PingResponse) {}
    30  
    31  }