feat: add import/export model types (ServiceImport, StreamImport, exports, auth)

This commit is contained in:
Joseph Doherty
2026-02-23 05:51:30 -05:00
parent 5bae9cc289
commit 591833adbb
10 changed files with 195 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using NATS.Server.Auth;
namespace NATS.Server.Imports;
public sealed class ServiceExport
{
public ExportAuth Auth { get; init; } = new();
public Account? Account { get; init; }
public ServiceResponseType ResponseType { get; init; } = ServiceResponseType.Singleton;
public TimeSpan ResponseThreshold { get; init; } = TimeSpan.FromMinutes(2);
public ServiceLatency? Latency { get; init; }
public bool AllowTrace { get; init; }
}