Files
tether/context.go
T
wisplite 8092488b29 mutation proof of concept
client can now send mutations and server properly executes them
TODO: implement query execution, add auth, add storage
2026-04-21 23:07:55 -05:00

21 lines
290 B
Go

package tether
import "gorm.io/gorm"
type AuthCtx struct {
UserID string
IsLoggedIn bool
}
type QueryCtx struct {
DB *gorm.DB
AuthCtx *AuthCtx
Params map[string]interface{}
}
type MutationCtx struct {
DB *gorm.DB
AuthCtx *AuthCtx
Params map[string]interface{}
}