mirror of
https://github.com/wisplite/tether.git
synced 2026-05-01 06:22:41 -05:00
8092488b29
client can now send mutations and server properly executes them TODO: implement query execution, add auth, add storage
21 lines
290 B
Go
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{}
|
|
}
|