mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 06:17:55 +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
|
|
@ -1,18 +0,0 @@
|
|||
using NodaTime;
|
||||
|
||||
namespace PluralKit.Core;
|
||||
|
||||
public class PKShardInfo
|
||||
{
|
||||
public enum ShardStatus
|
||||
{
|
||||
Down = 0,
|
||||
Up = 1
|
||||
}
|
||||
|
||||
public int Id { get; }
|
||||
public ShardStatus Status { get; }
|
||||
public float? Ping { get; }
|
||||
public Instant? LastHeartbeat { get; }
|
||||
public Instant? LastConnection { get; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue