tstor/.gqlgen.yml

75 lines
1.6 KiB
YAML
Raw Normal View History

2024-01-28 20:22:49 +00:00
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:
2024-05-19 21:24:09 +00:00
type: "*git.kmsign.ru/royalcat/tstor/src/host/torrent.Controller"
2024-01-28 20:22:49 +00:00
TorrentFile:
extraFields:
F:
type: "*github.com/anacrolix/torrent.File"
TorrentPeer:
extraFields:
F:
type: "*github.com/anacrolix/torrent.PeerConn"
2024-04-24 17:36:33 +00:00
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:
2024-05-19 21:24:09 +00:00
type: "*git.kmsign.ru/royalcat/tstor/src/host/torrent.TorrentFS"
2024-04-24 17:36:33 +00:00
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"