generated

package
v0.0.0-...-aeab57e Latest Latest
Warning

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

Go to latest
Published: Jun 19, 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 {
	Image struct {
		ExpiresAt func(childComplexity int) int
		Height    func(childComplexity int) int
		ImageLink func(childComplexity int) int
		Width     func(childComplexity int) int
	}

	Mutation struct {
		Resize         func(childComplexity int, image model.ImageInput, width int, height int) int
		ResizeExisting func(childComplexity int, id string, width int, height int) int
	}

	Query struct {
		ListProcessedImages func(childComplexity int) int
	}

	ResizeResult struct {
		ID       func(childComplexity int) int
		Original func(childComplexity int) int
		Resized  func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	Resize(ctx context.Context, image model.ImageInput, width int, height int) (*model.ResizeResult, error)
	ResizeExisting(ctx context.Context, id string, width int, height int) (*model.ResizeResult, error)
}

type QueryResolver

type QueryResolver interface {
	ListProcessedImages(ctx context.Context) ([]*model.ResizeResult, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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