14 lines
356 B
C#
14 lines
356 B
C#
namespace VoidCat.Services
|
|
{
|
|
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);
|
|
}
|