Reorganized structure, seperating implementations from core logic

This commit is contained in:
2025-11-28 00:53:37 +08:00
parent f1e5937978
commit 9b9d9e2156
24 changed files with 4 additions and 108 deletions

18
pkg/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)
}