generated

package
v0.0.0-...-7a865d1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 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 {
	Episode struct {
		ID     func(childComplexity int) int
		Image  func(childComplexity int) int
		Index  func(childComplexity int) int
		Number func(childComplexity int) int
		Season func(childComplexity int) int
		Title  func(childComplexity int) int
	}

	QueryRoot struct {
		Episode func(childComplexity int, id string) int
		Season  func(childComplexity int, id string) int
		Show    func(childComplexity int, id string) int
		Version func(childComplexity int) int
	}

	Season struct {
		ID     func(childComplexity int) int
		Image  func(childComplexity int) int
		Number func(childComplexity int) int
		Show   func(childComplexity int) int
		Title  func(childComplexity int) int
	}

	Show struct {
		ID    func(childComplexity int) int
		Image func(childComplexity int) int
		Title func(childComplexity int) int
	}

	Version struct {
		BuildSha func(childComplexity int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type EpisodeResolver

type EpisodeResolver interface {
	Season(ctx context.Context, obj *model.Episode) (*model.Season, error)
}

type QueryRootResolver

type QueryRootResolver interface {
	Episode(ctx context.Context, id string) (*model.Episode, error)
	Season(ctx context.Context, id string) (*model.Season, error)
	Show(ctx context.Context, id string) (*model.Show, error)
	Version(ctx context.Context) (*model.Version, error)
}

type ResolverRoot

type ResolverRoot interface {
	Episode() EpisodeResolver
	QueryRoot() QueryRootResolver
	Season() SeasonResolver
}

type SeasonResolver

type SeasonResolver interface {
	Show(ctx context.Context, obj *model.Season) (*model.Show, error)
}

Jump to

Keyboard shortcuts

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