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.

24 lines
513 B

  1. syntax = "proto3";
  2. package tendermint.proto.p2p;
  3. option go_package = "github.com/tendermint/tendermint/proto/p2p";
  4. import "third_party/proto/gogoproto/gogo.proto";
  5. message PacketPing {}
  6. message PacketPong {}
  7. message PacketMsg {
  8. int32 channel_id = 1 [(gogoproto.customname) = "ChannelID"];
  9. int32 eof = 2 [(gogoproto.customname) = "EOF"];
  10. bytes data = 3;
  11. }
  12. message Packet {
  13. oneof sum {
  14. PacketPing packet_ping = 1;
  15. PacketPong packet_pong = 2;
  16. PacketMsg packet_msg = 3;
  17. }
  18. }