Further scaffolding

This commit is contained in:
2025-11-27 20:34:34 +08:00
parent c52b2f7aa6
commit f1e5937978
28 changed files with 322 additions and 143 deletions

18
core/data/egress.go Normal file
View File

@@ -0,0 +1,18 @@
package data
import (
"context"
"github.com/google/uuid"
)
type Egress interface {
Name() string
Configure(cfg map[string]any) error
Connect(ctx context.Context, actions EgresActions) error
Disconnect(ctx context.Context) error
}
type EgresActions interface {
Subscribe(ctx context.Context, namespace string, id uuid.UUID) (<-chan Envelope, func(), error)
}