generated

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 10 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 {
	Query struct {
		Episode func(childComplexity int, guid *string) int
		Show    func(childComplexity int, name *string) int
	}

	Category struct {
		Name        func(childComplexity int) int
		Subcategory func(childComplexity int) int
	}

	Enclosure struct {
		Link func(childComplexity int) int
		Size func(childComplexity int) int
		Type func(childComplexity int) int
	}

	Episode struct {
		Created     func(childComplexity int) int
		Description func(childComplexity int) int
		Enclosure   func(childComplexity int) int
		GUID        func(childComplexity int) int
		Image       func(childComplexity int) int
		Labels      func(childComplexity int) int
		Name        func(childComplexity int) int
		Published   func(childComplexity int) int
	}

	EpisodeDescription struct {
		Description func(childComplexity int) int
		Duration    func(childComplexity int) int
		Link        func(childComplexity int) int
		Summary     func(childComplexity int) int
		Title       func(childComplexity int) int
	}

	Labels struct {
		Block    func(childComplexity int) int
		Complete func(childComplexity int) int
		Episode  func(childComplexity int) int
		Explicit func(childComplexity int) int
		Language func(childComplexity int) int
		Season   func(childComplexity int) int
		Type     func(childComplexity int) int
	}

	Owner struct {
		Email func(childComplexity int) int
		Name  func(childComplexity int) int
	}

	Show struct {
		Build       func(childComplexity int) int
		Created     func(childComplexity int) int
		Description func(childComplexity int) int
		Episodes    func(childComplexity int) int
		GUID        func(childComplexity int) int
		Image       func(childComplexity int) int
		Labels      func(childComplexity int) int
		Name        func(childComplexity int) int
	}

	ShowDescription struct {
		Author    func(childComplexity int) int
		Category  func(childComplexity int) int
		Copyright func(childComplexity int) int
		Link      func(childComplexity int) int
		Owner     func(childComplexity int) int
		Summary   func(childComplexity int) int
		Title     func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Show(ctx context.Context, name *string) (*model.Show, error)
	Episode(ctx context.Context, guid *string) (*model.Episode, 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