Major update to the data service. Added gRPC and socket servers. Switched to using only a single go.mod at the root.

This commit is contained in:
2025-06-27 18:24:10 +08:00
parent b017291a5a
commit b9cd25e9b4
32 changed files with 1532 additions and 276 deletions

View File

@@ -0,0 +1,19 @@
package provider
import (
"gitlab.michelsen.id/phillmichelsen/tessera/services/data_service/internal/domain"
)
type Provider interface {
Start() error
Stop()
RequestStream(subject string, channel chan domain.Message) error
CancelStream(subject string)
GetActiveStreams() []string
IsStreamActive(subject string) bool
Fetch(subject string) (domain.Message, error)
IsValidSubject(subject string, isFetch bool) bool
}