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 QueryResolver ¶
type QueryResolver interface {
ListProcessedImages(ctx context.Context) ([]*model.ResizeResult, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.