15 lines
267 B
Protocol Buffer
15 lines
267 B
Protocol Buffer
syntax = "proto3";
|
|
package protocol;
|
|
option go_package = "pkg/websocket/codec/protobuf/protocol";
|
|
|
|
//通信包装
|
|
message TransPack {
|
|
string router = 1;
|
|
bytes data = 2;
|
|
string error = 3;
|
|
}
|
|
|
|
//连接检测
|
|
message PingPang {
|
|
int64 timestamp = 1; //时间戳
|
|
} |