...

Text file src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto/test.proto

Documentation: github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto

     1syntax = "proto3";
     2
     3package mwitkow.testproto;
     4
     5
     6message Empty {
     7}
     8
     9message PingRequest {
    10  string value = 1;
    11  int32 sleep_time_ms = 2;
    12  uint32 error_code_returned = 3;
    13}
    14
    15message PingResponse {
    16  string Value = 1;
    17  int32 counter = 2;
    18}
    19
    20service 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}

View as plain text