feat: add jetstream config validation models

This commit is contained in:
Joseph Doherty
2026-02-23 05:59:03 -05:00
parent 6d23e89fe8
commit d1935bc9ec
4 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
namespace NATS.Server.JetStream.Models;
public sealed class StreamConfig
{
public string Name { get; set; } = string.Empty;
public List<string> Subjects { get; set; } = [];
public int MaxMsgs { get; set; }
public int Replicas { get; set; } = 1;
}