PluralKit/proto/state.proto

22 lines
356 B
Protocol Buffer
Raw Permalink Normal View History

2022-01-22 08:52:52 +00:00
syntax = "proto3";
message ShardState {
int32 shard_id = 1;
bool up = 2;
int32 disconnection_count = 3;
// milliseconds
int32 latency = 4;
// unix timestamp
int32 last_heartbeat = 5;
int32 last_connection = 6;
2022-02-07 16:05:55 +00:00
optional int32 cluster_id = 7;
2022-01-22 08:52:52 +00:00
}
message GatewayEvent {
int32 shard_id = 1;
bytes payload = 2;
}