mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
feat: store shard status in Redis
This commit is contained in:
parent
22faa47d00
commit
0419ced0d2
18 changed files with 602 additions and 183 deletions
19
proto/discord.proto
Normal file
19
proto/discord.proto
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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;
|
||||
}
|
||||
|
||||
message GatewayEvent {
|
||||
int32 shard_id = 1;
|
||||
bytes payload = 2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue