base.proto 267 B

123456789101112131415
  1. syntax = "proto3";
  2. package protocol;
  3. option go_package = "pkg/websocket/codec/protobuf/protocol";
  4. //通信包装
  5. message TransPack {
  6. string router = 1;
  7. bytes data = 2;
  8. string error = 3;
  9. }
  10. //连接检测
  11. message PingPang {
  12. int64 timestamp = 1; //时间戳
  13. }