tstor/server/.gqlgen.yml
2025-04-04 02:29:10 +04:00

48 lines
1.1 KiB
YAML

schema:
- ./graphql/*.graphql
- ./graphql/**/*.graphql
exec:
filename: src/delivery/graphql/generated.go
package: graph
model:
filename: src/delivery/graphql/model/models_gen.go
package: model
resolver:
layout: follow-schema
dir: src/delivery/graphql/resolver
package: resolver
filename_template: "{name}.resolvers.go"
models:
DateTime:
model: github.com/99designs/gqlgen/graphql.Time
Int:
model: github.com/99designs/gqlgen/graphql.Int64
UInt:
model:
- github.com/99designs/gqlgen/graphql.Uint
SimpleDir:
extraFields:
Path:
type: string
FS:
type: "git.kmsign.ru/royalcat/tstor/server/src/vfs.Filesystem"
ResolverFS:
extraFields:
FS:
type: "*git.kmsign.ru/royalcat/tstor/server/src/vfs.ResolverFS"
# ArchiveFS:
# extraFields:
# FS:
# type: "*git.kmsign.ru/royalcat/tstor/server/src/vfs.ArchiveFS"
TorrentOps:
extraFields:
InfoHash:
type: "string"
autobind:
- "git.kmsign.ru/royalcat/tstor/server/src/delivery/filter"
- "git.kmsign.ru/royalcat/tstor/server/src/delivery/graphql/fs"