add placeholder functions for websocket state tracker

This commit is contained in:
wisplite
2026-04-07 13:34:53 -05:00
parent 13a80d7299
commit 28042b8930
2 changed files with 17 additions and 8 deletions
+1 -2
View File
@@ -11,14 +11,13 @@ import (
type Engine struct {
db *gorm.DB
channels map[string]*reactivity.Channel
mutations map[string]func(ctx *MutationCtx) error
queries map[string]func(ctx *QueryCtx) error
}
func NewEngine(db *gorm.DB) *Engine {
slog.SetLogLoggerLevel(slog.LevelDebug)
return &Engine{db: db, channels: make(map[string]*reactivity.Channel), mutations: make(map[string]func(ctx *MutationCtx) error), queries: make(map[string]func(ctx *QueryCtx) error)}
return &Engine{db: db, mutations: make(map[string]func(ctx *MutationCtx) error), queries: make(map[string]func(ctx *QueryCtx) error)}
}
func (e *Engine) RegisterMutation(name string, mutation func(ctx *MutationCtx) error) {