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.
20 lines
360 B
20 lines
360 B
syntax = "proto3";
|
|
// 定义包名
|
|
option go_package ="/transport";
|
|
|
|
service Transport {
|
|
// Ping
|
|
rpc Ping (PingRequest) returns (PongResponse);
|
|
}
|
|
|
|
// 定义Ping请求消息结构
|
|
message PingRequest {
|
|
// 类型 字段 = 标识号
|
|
string token = 1;
|
|
string context = 2;
|
|
}
|
|
|
|
// 定义 Pong响应消息结构
|
|
message PongResponse {
|
|
string context = 1;
|
|
}
|