base-golang/pkg/websocket/codec/protobuf/protocol/base.proto

15 lines
267 B
Protocol Buffer
Raw Permalink Normal View History

2024-07-23 10:23:43 +08:00
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; //时间戳
}