github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/server/proto/example/example.proto (about)

     1  syntax = "proto3";
     2  
     3  package go.micro.srv.example;
     4  
     5  service Example {
     6  	rpc Call(Request) returns (Response) {}
     7  	rpc Stream(StreamingRequest) returns (stream StreamingResponse) {}
     8  	rpc PingPong(stream Ping) returns (stream Pong) {}
     9  }
    10  
    11  message Message {
    12  	string say = 1;
    13  }
    14  
    15  message Request {
    16  	string name = 1;
    17  }
    18  
    19  message Response {
    20  	string msg = 1;
    21  }
    22  
    23  message StreamingRequest {
    24  	int64 count = 1;
    25  }
    26  
    27  message StreamingResponse {
    28  	int64 count = 1;
    29  }
    30  
    31  message Ping {
    32  	int64 stroke = 1;
    33  }
    34  
    35  message Pong {
    36  	int64 stroke = 1;
    37  }