catsync/assets/protobuf/peer_message.proto
tqcq 108afec172
All checks were successful
catsync-build / simple-build (amd64, linux, 1.23.1) (push) Successful in 38s
catsync-build / simple-build (amd64, linux, oldstable) (push) Successful in 38s
catsync-build / simple-build (amd64, windows, 1.23.1) (push) Successful in 35s
catsync-build / simple-build (amd64, windows, oldstable) (push) Successful in 35s
catsync-build / simple-build (arm64, linux, 1.23.1) (push) Successful in 38s
catsync-build / simple-build (arm64, linux, oldstable) (push) Successful in 37s
Add workflows.
2024-12-22 22:36:43 +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;
}