catsync/assets/protobuf/peer_message.proto
tqcq e898ecc701
Some checks failed
catsync-build / simple-build (amd64, linux, 1.23.1) (push) Has been cancelled
catsync-build / simple-build (amd64, linux, oldstable) (push) Has been cancelled
catsync-build / simple-build (amd64, windows, 1.23.1) (push) Has been cancelled
catsync-build / simple-build (amd64, windows, oldstable) (push) Has been cancelled
catsync-build / simple-build (arm64, linux, 1.23.1) (push) Has started running
catsync-build / simple-build (arm64, linux, oldstable) (push) Has been cancelled
Add workflows.
2024-12-22 21:36:57 +08:00

21 lines
414 B
Protocol Buffer

syntax="proto3";
package main;
option go_package = "/pb";
import public "google/protobuf/timestamp.proto";
message PeerMessage {
uint32 magic_number= 1;
uint32 version = 2;
PeerMessageType type = 3;
google.protobuf.Timestamp send_timestamp = 4;
string uid = 5;
}
enum PeerMessageType {
PEER_MESSAGE_TYPE_REQUEST = 0;
PEER_MESSAGE_TYPE_RESPONSE = 1;
PEER_MESSAGE_TYPE_ACK = 2;
}