first commit
This commit is contained in:
15
pkg/websocket/codec/protobuf/protocol/base.proto
Normal file
15
pkg/websocket/codec/protobuf/protocol/base.proto
Normal file
@ -0,0 +1,15 @@
|
||||
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; //时间戳
|
||||
}
|
Reference in New Issue
Block a user