Started with servers sync to daemon

This commit is contained in:
2024-12-24 00:42:17 +01:00
parent 4326af2925
commit 9f8c1f6d24
19 changed files with 271 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
namespace MoonlightServers.DaemonShared.Http.Responses.Statistics;
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Statistics;
public class StatisticsApplicationResponse
{

View File

@@ -1,4 +1,4 @@
namespace MoonlightServers.DaemonShared.Http.Responses.Statistics;
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Statistics;
public class StatisticsDockerResponse
{

View File

@@ -1,4 +1,4 @@
namespace MoonlightServers.DaemonShared.Http.Responses.Statistics;
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Statistics;
public class StatisticsHostResponse
{

View File

@@ -1,4 +1,4 @@
namespace MoonlightServers.DaemonShared.Http.Responses.Sys;
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Sys;
public class SystemStatusResponse
{

View File

@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<Folder Include="Http\Requests\" />
<Folder Include="DaemonSide\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,7 @@
namespace MoonlightServers.DaemonShared.PanelSide.Http.Responses;
public class AllocationDataResponse
{
public string IpAddress { get; set; }
public int Port { get; set; }
}

View File

@@ -0,0 +1,22 @@
namespace MoonlightServers.DaemonShared.PanelSide.Http.Responses;
public class ServerDataResponse
{
public int Id { get; set; }
public string StartupCommand { get; set; }
public string OnlineDetection { get; set; }
public string StopCommand { get; set; }
public string DockerImage { get; set; }
public bool PullDockerImage { get; set; }
public string ParseConiguration { get; set; }
public int Cpu { get; set; }
public int Memory { get; set; }
public int Disk { get; set; }
public bool UseVirtualDisk { get; set; }
public int Bandwidth { get; set; }
public AllocationDataResponse[] Allocations { get; set; }
public Dictionary<string, string> Variables { get; set; }
}