You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
335 B
27 lines
335 B
syntax = "proto3";
|
|
|
|
option go_package = "git.liushuai.cq.cn/lsadmin/example-proto/discovery";
|
|
|
|
package discovery;
|
|
|
|
// 请求消息
|
|
message Request {
|
|
string client_name = 1;
|
|
}
|
|
|
|
// 响应消息
|
|
message Response {
|
|
string message = 1;
|
|
}
|
|
|
|
// 服务定义
|
|
service GreetingService {
|
|
rpc GetMessage (Request) returns (Response);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|