Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Content struct { Adult func(childComplexity int) int Attributes func(childComplexity int) int Collections func(childComplexity int) int CreatedAt func(childComplexity int) int ExternalLinks func(childComplexity int) int ID func(childComplexity int) int MetadataSource func(childComplexity int) int OriginalLanguage func(childComplexity int) int OriginalTitle func(childComplexity int) int Overview func(childComplexity int) int Popularity func(childComplexity int) int ReleaseDate func(childComplexity int) int ReleaseYear func(childComplexity int) int Runtime func(childComplexity int) int Source func(childComplexity int) int Title func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int VoteAverage func(childComplexity int) int VoteCount func(childComplexity int) int } ContentAttribute struct { CreatedAt func(childComplexity int) int Key func(childComplexity int) int MetadataSource func(childComplexity int) int Source func(childComplexity int) int UpdatedAt func(childComplexity int) int Value func(childComplexity int) int } ContentCollection struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int MetadataSource func(childComplexity int) int Name func(childComplexity int) int Source func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int } ContentTypeAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } Episodes struct { Label func(childComplexity int) int Seasons func(childComplexity int) int } ExternalLink struct { MetadataSource func(childComplexity int) int Url func(childComplexity int) int } GenreAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } LanguageAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } LanguageInfo struct { Id func(childComplexity int) int Name func(childComplexity int) int } MetadataSource struct { Key func(childComplexity int) int Name func(childComplexity int) int } Mutation struct { Torrent func(childComplexity int) int } Query struct { Torrent func(childComplexity int) int TorrentContent func(childComplexity int) int } ReleaseYearAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } Season struct { Episodes func(childComplexity int) int Season func(childComplexity int) int } SuggestedTag struct { Count func(childComplexity int) int Name func(childComplexity int) int } Torrent struct { CreatedAt func(childComplexity int) int Extension func(childComplexity int) int FileType func(childComplexity int) int FileTypes func(childComplexity int) int Files func(childComplexity int) int FilesStatus func(childComplexity int) int HasFilesInfo func(childComplexity int) int InfoHash func(childComplexity int) int Leechers func(childComplexity int) int MagnetUri func(childComplexity int) int Name func(childComplexity int) int Private func(childComplexity int) int Seeders func(childComplexity int) int SingleFile func(childComplexity int) int Size func(childComplexity int) int Sources func(childComplexity int) int TagNames func(childComplexity int) int UpdatedAt func(childComplexity int) int } TorrentContent struct { Content func(childComplexity int) int ContentID func(childComplexity int) int ContentSource func(childComplexity int) int ContentType func(childComplexity int) int CreatedAt func(childComplexity int) int Episodes func(childComplexity int) int ID func(childComplexity int) int InfoHash func(childComplexity int) int Languages func(childComplexity int) int ReleaseGroup func(childComplexity int) int Title func(childComplexity int) int Torrent func(childComplexity int) int UpdatedAt func(childComplexity int) int Video3d func(childComplexity int) int VideoCodec func(childComplexity int) int VideoModifier func(childComplexity int) int VideoResolution func(childComplexity int) int VideoSource func(childComplexity int) int } TorrentContentAggregations struct { ContentType func(childComplexity int) int Genre func(childComplexity int) int Language func(childComplexity int) int ReleaseYear func(childComplexity int) int TorrentFileType func(childComplexity int) int TorrentSource func(childComplexity int) int TorrentTag func(childComplexity int) int VideoResolution func(childComplexity int) int VideoSource func(childComplexity int) int } TorrentContentQuery struct { Search func(childComplexity int, query *query.SearchParams, facets *gen.TorrentContentFacetsInput) int } TorrentContentSearchResult struct { Aggregations func(childComplexity int) int HasNextPage func(childComplexity int) int Items func(childComplexity int) int TotalCount func(childComplexity int) int TotalCountIsEstimate func(childComplexity int) int } TorrentFile struct { CreatedAt func(childComplexity int) int Extension func(childComplexity int) int FileType func(childComplexity int) int Index func(childComplexity int) int InfoHash func(childComplexity int) int Path func(childComplexity int) int Size func(childComplexity int) int UpdatedAt func(childComplexity int) int } TorrentFileTypeAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } TorrentMutation struct { Delete func(childComplexity int, infoHashes []protocol.ID) int DeleteTags func(childComplexity int, infoHashes []protocol.ID, tagNames []string) int PutTags func(childComplexity int, infoHashes []protocol.ID, tagNames []string) int SetTags func(childComplexity int, infoHashes []protocol.ID, tagNames []string) int } TorrentQuery struct { SuggestTags func(childComplexity int, query *gen.SuggestTagsQueryInput) int } TorrentSource struct { ImportID func(childComplexity int) int Key func(childComplexity int) int Leechers func(childComplexity int) int Name func(childComplexity int) int Seeders func(childComplexity int) int } TorrentSourceAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } TorrentSuggestTagsResult struct { Suggestions func(childComplexity int) int } TorrentTagAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } VideoResolutionAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } VideoSourceAgg struct { Count func(childComplexity int) int IsEstimate func(childComplexity int) int Label func(childComplexity int) int Value func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type ContentResolver ¶
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface {
Torrent(ctx context.Context) (gqlmodel.TorrentMutation, error)
}
type QueryResolver ¶
type QueryResolver interface { Torrent(ctx context.Context) (gqlmodel.TorrentQuery, error) TorrentContent(ctx context.Context) (gqlmodel.TorrentContentQuery, error) }
type ResolverRoot ¶
type ResolverRoot interface { Content() ContentResolver Mutation() MutationResolver Query() QueryResolver Torrent() TorrentResolver TorrentMutation() TorrentMutationResolver }
type TorrentMutationResolver ¶ added in v0.3.0
type TorrentMutationResolver interface { Delete(ctx context.Context, obj *gqlmodel.TorrentMutation, infoHashes []protocol.ID) (*string, error) PutTags(ctx context.Context, obj *gqlmodel.TorrentMutation, infoHashes []protocol.ID, tagNames []string) (*string, error) SetTags(ctx context.Context, obj *gqlmodel.TorrentMutation, infoHashes []protocol.ID, tagNames []string) (*string, error) DeleteTags(ctx context.Context, obj *gqlmodel.TorrentMutation, infoHashes []protocol.ID, tagNames []string) (*string, error) }
type TorrentResolver ¶
Click to show internal directories.
Click to hide internal directories.