Port configuration parsing for NKey users, gateway remotes, leaf node remotes, auth timeout, write_deadline, websocket ping_interval, and token+users conflict validation. Add RemoteGatewayOptions, enhanced LeafNodeOptions with remotes support. 110 new tests ported from opts_test.go.
16 lines
528 B
C#
16 lines
528 B
C#
namespace NATS.Server.Configuration;
|
|
|
|
public sealed class ClusterOptions
|
|
{
|
|
public string? Name { get; set; }
|
|
public string Host { get; set; } = "0.0.0.0";
|
|
public int Port { get; set; } = 6222;
|
|
public int PoolSize { get; set; } = 3;
|
|
public List<string> Routes { get; set; } = [];
|
|
public List<string> Accounts { get; set; } = [];
|
|
public RouteCompression Compression { get; set; } = RouteCompression.None;
|
|
|
|
// Go: opts.go — cluster write_deadline
|
|
public TimeSpan WriteDeadline { get; set; }
|
|
}
|