github.com/abolfazlbeh/zhycan@v0.0.0-20230819144214-24cf38237387/cmd/cmd_main/commands/templates/app.proto.greeter.gotmpl (about) 1 /* 2 Create By Zhycan Framework 3 4 Copyright © {{.Year}} 5 Project: {{.ProjectName}} 6 File: `app/proto/greeter.proto` --> {{ .Time.Format .TimeFormat }} by {{.CreatorUserName}} 7 ------------------------------ 8 */ 9 10 // The greeting service definition. 11 service Greeter { 12 // Sends a greeting 13 rpc SayHello (HelloRequest) returns (HelloResponse) {} 14 } 15 16 // The request message containing the user's name. 17 message HelloRequest { 18 string name = 1; 19 } 20 21 // The response message containing the greetings 22 message HelloResponse { 23 string message = 1; 24 }