Refactor command handling: rename types.go to commands.go, update command response types, and streamline session management logic

This commit is contained in:
2025-09-10 13:05:34 +00:00
parent 6ebc541de0
commit e56bb210f8
6 changed files with 275 additions and 474 deletions

View File

@@ -6,11 +6,11 @@ type Provider interface {
Start() error
Stop()
StartStreams(keys []string) <-chan error
StopStreams(key []string) <-chan error
Fetch(key string) (domain.Message, error)
Subscribe(subject string) <-chan error
Unsubscribe(subject string) <-chan error
Fetch(subject string) (domain.Message, error)
GetActiveStreams() []string
IsStreamActive(key string) bool
IsValidSubject(key string, isFetch bool) bool
}