void.cat/VoidCat/Services/Abstractions/IStatsCollector.cs
2022-02-16 16:33:00 +00:00

12 lines
334 B
C#

namespace VoidCat.Services.Abstractions;
public interface IStatsCollector
{
ValueTask TrackIngress(Guid id, ulong amount);
ValueTask TrackEgress(Guid id, ulong amount);
ValueTask<Bandwidth> GetBandwidth();
ValueTask<Bandwidth> GetBandwidth(Guid id);
}
public sealed record Bandwidth(ulong Ingress, ulong Egress);