feat: define StreamStore/ConsumerStore interfaces from Go store.go
Port IStreamStore, IConsumerStore, StoreMsg, StreamState, SimpleState, ConsumerState, FileStoreConfig, StoreCipher, StoreCompression types. Rename Models.StreamState → ApiStreamState to avoid namespace conflict.
This commit is contained in:
@@ -138,12 +138,12 @@ public sealed class StreamManager
|
||||
return true;
|
||||
}
|
||||
|
||||
public ValueTask<StreamState> GetStateAsync(string name, CancellationToken ct)
|
||||
public ValueTask<Models.ApiStreamState> GetStateAsync(string name, CancellationToken ct)
|
||||
{
|
||||
if (_streams.TryGetValue(name, out var stream))
|
||||
return stream.Store.GetStateAsync(ct);
|
||||
|
||||
return ValueTask.FromResult(new StreamState());
|
||||
return ValueTask.FromResult(new Models.ApiStreamState());
|
||||
}
|
||||
|
||||
public StreamHandle? FindBySubject(string subject)
|
||||
|
||||
Reference in New Issue
Block a user