Made a lot of changes. Enhanced memory usage.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace Models.Model.Backend;
|
||||
|
||||
public enum CustomProtocolType
|
||||
{
|
||||
Icmp = 1
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Models.Model.Backend;
|
||||
|
||||
public struct DatabaseSizes
|
||||
{
|
||||
public double DiscardedDbSize { get; set; }
|
||||
|
||||
public double FilteredDbSize { get; set; }
|
||||
|
||||
public double MyDbSize { get; set; }
|
||||
}
|
||||
@@ -2,6 +2,6 @@ namespace Models.Model.Backend;
|
||||
|
||||
public struct FilterQueueItem
|
||||
{
|
||||
public Ip Ip { get; init; }
|
||||
public int ResponseCode { get; init; }
|
||||
public Ip Ip { get; set; }
|
||||
public int ResponseCode { get; set; }
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace Models.Model.Backend;
|
||||
|
||||
public enum RuntimeVariable
|
||||
{
|
||||
DbContent,
|
||||
DbDiscarded,
|
||||
ContentFilter,
|
||||
ScannerTimeout
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace Models.Model.Backend;
|
||||
public enum SizeUnits
|
||||
{
|
||||
Byte,
|
||||
KB,
|
||||
MB,
|
||||
GB,
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
namespace Models.Model.External;
|
||||
|
||||
public enum CommunicationCommand
|
||||
{
|
||||
GetScanningProgress,
|
||||
GetSearches,
|
||||
StopScanning,
|
||||
DbReindex,
|
||||
DbVacuum,
|
||||
ChangeRuntimeVariable,
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
namespace Models.Model.External;
|
||||
|
||||
//[MessagePackObject]
|
||||
public class CommunicationObject
|
||||
{
|
||||
//[Key(0)]
|
||||
public CommunicationCommand Command { get; set; }
|
||||
|
||||
//[Key(1)]
|
||||
public string? SearchTerm { get; set; } = "";
|
||||
|
||||
//[Key(2)]
|
||||
public string? Variable { get; set; } = "";
|
||||
|
||||
//[Key(3)]
|
||||
public string? VariableValue { get; set; } = "";
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace Models.Model.External;
|
||||
|
||||
public class CommunicationResult
|
||||
{
|
||||
public List<SearchResult?>? Result { get; set; }
|
||||
|
||||
public ScanningStatus? Status { get; set; }
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
namespace Models.Model.External;
|
||||
|
||||
public struct ScanningStatus
|
||||
{
|
||||
public float PercentageOfIpv4Scanned { get; set; }
|
||||
|
||||
public long TotalFiltered { get; set; }
|
||||
|
||||
public long AmountOfIpv4Left { get; set; }
|
||||
|
||||
public long TotalDiscarded { get; set; }
|
||||
|
||||
public double DiscardedDbSize { get; set; }
|
||||
|
||||
public double FilteredDbSize { get; set; }
|
||||
|
||||
public double MyDbSize { get; set; }
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
namespace Models.Model.External;
|
||||
|
||||
public class SearchResults
|
||||
{
|
||||
public List<SearchResult?>? Results { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user