2022-01-25 16:17:48 +00:00
|
|
|
|
namespace VoidCat.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IStatsCollector
|
|
|
|
|
{
|
|
|
|
|
ValueTask TrackIngress(Guid id, ulong amount);
|
|
|
|
|
ValueTask TrackEgress(Guid id, ulong amount);
|
2022-01-28 00:18:27 +00:00
|
|
|
|
|
|
|
|
|
ValueTask<Bandwidth> GetBandwidth();
|
|
|
|
|
ValueTask<Bandwidth> GetBandwidth(Guid id);
|
2022-01-25 16:17:48 +00:00
|
|
|
|
}
|
2022-01-28 00:18:27 +00:00
|
|
|
|
|
|
|
|
|
public sealed record Bandwidth(ulong Ingress, ulong Egress);
|
2022-01-25 16:17:48 +00:00
|
|
|
|
}
|