feat: add jetstream config validation models
This commit is contained in:
9
src/NATS.Server/JetStream/Models/StreamConfig.cs
Normal file
9
src/NATS.Server/JetStream/Models/StreamConfig.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user