5using HotChocolate.Types.Relay;
7using Microsoft.Extensions.Options;
61 ArgumentNullException.ThrowIfNull(identifier);
62 ArgumentNullException.ThrowIfNull(swarmService);
63 var info = swarmService
65 ?.FirstOrDefault(x => x.Identifier == identifier);
79 ArgumentNullException.ThrowIfNull(nodeInformation);
93 public IGateway Gateway([Service] IOptionsSnapshot<SwarmConfiguration> swarmConfigurationOptions)
95 ArgumentNullException.ThrowIfNull(swarmConfigurationOptions);
97 bool local =
Identifier == swarmConfigurationOptions.Value.Identifier;
virtual ? Uri PublicAddress
The address the swarm server can be publically accessed.
virtual ? Uri Address
The public address of the server.
string? Identifier
The server's identifier.
Exception representing ErrorMessageResponses.
IGateway for the SwarmNode this query is executing on.
Represents a node server in a swarm.
static ? SwarmNode GetSwarmNode(string identifier, [Service] ISwarmService swarmService)
Node resolver for SwarmNodes.
string Identifier
The swarm server ID.
SwarmNode(SwarmServerInformation? nodeInformation)
Initializes a new instance of the SwarmNode class.
IGateway Gateway([Service] IOptionsSnapshot< SwarmConfiguration > swarmConfigurationOptions)
Gets the SwarmNode's IGateway.
Uri Address
The swarm server's internal Uri.
string NodeId
The node ID.
Uri? PublicAddress
The swarm server's optional public address.
Management interface for the parent SwarmNode.
Represents a tgstation-server installation.
Used for swarm operations. Functions may be no-op based on configuration.
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.