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

16
core/data/router.go Normal file
View File

@@ -0,0 +1,16 @@
package data
import "github.com/google/uuid"
type Router struct {
busses map[string]Bus
}
func NewRouter() *Router {
return &Router{
busses: make(map[string]Bus),
}
}
func (r *Router) Emit(namespace string, id uuid.UUID, envelope Envelope) error { return nil }
func (r *Router) EmitBatch(namespace string, id uuid.UUID, enveloeps []Envelope) error { return nil }