generated

package
v0.0.0-...-f06d465 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 11 Imported by: 0

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 {
	FeedItem struct {
		Description func(childComplexity int) int
		Duration    func(childComplexity int) int
		Image       func(childComplexity int) int
		LinkURL     func(childComplexity int) int
		PubDate     func(childComplexity int) int
		Subtitle    func(childComplexity int) int
		Summary     func(childComplexity int) int
		Text        func(childComplexity int) int
		Title       func(childComplexity int) int
	}

	Podcast struct {
		Artist        func(childComplexity int) int
		EpisodesCount func(childComplexity int) int
		FeedURL       func(childComplexity int) int
		Genres        func(childComplexity int) int
		PodcastName   func(childComplexity int) int
		Thumbnail     func(childComplexity int) int
	}

	Query struct {
		Feed   func(childComplexity int, feedURL string) int
		Search func(childComplexity int, term string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Search(ctx context.Context, term string) ([]*model.Podcast, error)
	Feed(ctx context.Context, feedURL string) ([]*model.FeedItem, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL