go-micro.dev/v5@v5.12.0/cmd/protoc-gen-micro/examples/greeter/greeter.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "../greeter";
     4  
     5  service Greeter {
     6  	rpc Hello(Request) returns (Response) {}
     7  	rpc Stream(stream Request) returns (stream Response) {}
     8  }
     9  
    10  message Request {
    11  	string name = 1;
    12  	optional string msg = 2;
    13  }
    14  
    15  message Response {
    16  	string msg = 1;
    17  }