tstor/.gqlgen.yml
royalcat 991c15fdef
Some checks failed
docker / build-docker (linux/amd64) (push) Successful in 1m33s
docker / build-docker (linux/386) (push) Successful in 1m39s
docker / build-docker (linux/arm64) (push) Successful in 7m6s
docker / build-docker (linux/arm/v7) (push) Successful in 7m31s
docker / build-docker (linux/arm64/v8) (push) Has been cancelled
refactor torrent
2024-05-20 00:24:09 +03:00

74 lines
1.6 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
Torrent:
fields:
name:
resolver: true
files:
resolver: true
excludedFiles:
resolver: true
peers:
resolver: true
extraFields:
T:
type: "*git.kmsign.ru/royalcat/tstor/src/host/torrent.Controller"
TorrentFile:
extraFields:
F:
type: "*github.com/anacrolix/torrent.File"
TorrentPeer:
extraFields:
F:
type: "*github.com/anacrolix/torrent.PeerConn"
SimpleDir:
fields:
entries:
resolver: true
extraFields:
Path:
type: string
FS:
type: "git.kmsign.ru/royalcat/tstor/src/host/vfs.Filesystem"
TorrentFS:
fields:
entries:
resolver: true
extraFields:
FS:
type: "*git.kmsign.ru/royalcat/tstor/src/host/torrent.TorrentFS"
ResolverFS:
fields:
entries:
resolver: true
extraFields:
FS:
type: "*git.kmsign.ru/royalcat/tstor/src/host/vfs.ResolverFS"
ArchiveFS:
fields:
entries:
resolver: true
extraFields:
FS:
type: "*git.kmsign.ru/royalcat/tstor/src/host/vfs.ArchiveFS"