mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-09 17:22:25 +08:00
52 lines
1.1 KiB
Protocol Buffer
52 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package proto;
|
|
|
|
option go_package = "./;proto";
|
|
|
|
message PacketHead {
|
|
uint32 packet_id = 1;
|
|
uint32 rpc_id = 2;
|
|
uint32 client_sequence_id = 3;
|
|
uint32 enet_channel_id = 4;
|
|
uint32 enet_is_reliable = 5;
|
|
uint64 sent_ms = 6;
|
|
uint32 user_id = 11;
|
|
uint32 user_ip = 12;
|
|
uint32 user_session_id = 13;
|
|
uint32 home_user_id = 14;
|
|
uint64 recv_time_ms = 21;
|
|
uint32 rpc_begin_time_ms = 22;
|
|
map<uint32, uint32> ext_map = 23;
|
|
uint32 sender_app_id = 24;
|
|
uint32 sender_load = 25;
|
|
bytes span_context_str = 26;
|
|
uint32 source_service = 31;
|
|
uint32 target_service = 32;
|
|
map<uint32, uint32> service_app_id_map = 33;
|
|
bool is_set_game_thread = 34;
|
|
uint32 game_thread_index = 35;
|
|
bool is_set_multi_thread = 36;
|
|
uint32 multi_thread_index = 37;
|
|
}
|
|
|
|
message DebugNotify {
|
|
enum Enum {
|
|
option allow_alias = true;
|
|
ZERO = 0;
|
|
CMD_ID = 101;
|
|
TARGET_SERVICE = 101;
|
|
ENET_CHANNEL_ID = 2;
|
|
ENET_IS_RELIABLE = 1;
|
|
}
|
|
|
|
enum Retcode {
|
|
SUCC = 0;
|
|
FAIL = 1;
|
|
}
|
|
|
|
uint32 id = 1;
|
|
string name = 2;
|
|
Retcode retcode = 3;
|
|
}
|