generated

package
v0.0.0-...-373972f Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 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 {
	Mutation struct {
		AddNotes      func(childComplexity int, input model.AddNotesInput) int
		DeletePhoto   func(childComplexity int, input model.DeletePhotoInput) int
		DownloadPhoto func(childComplexity int, input model.DownloadPhotoInput) int
		TagPhoto      func(childComplexity int, input model.TagPhotoInput) int
		UploadPhoto   func(childComplexity int, input model.UploadPhotoInput) int
	}

	Photo struct {
		Deleted func(childComplexity int) int
		Name    func(childComplexity int) int
		Notes   func(childComplexity int) int
		Tags    func(childComplexity int) int
		Updated func(childComplexity int) int
	}

	Query struct {
		Photos 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 {
	UploadPhoto(ctx context.Context, input model.UploadPhotoInput) (*model.Photo, error)
	DownloadPhoto(ctx context.Context, input model.DownloadPhotoInput) (*model.Photo, error)
	DeletePhoto(ctx context.Context, input model.DeletePhotoInput) (*model.Photo, error)
	TagPhoto(ctx context.Context, input model.TagPhotoInput) (*model.Photo, error)
	AddNotes(ctx context.Context, input model.AddNotesInput) (*model.Photo, error)
}

type QueryResolver

type QueryResolver interface {
	Photos(ctx context.Context) ([]*model.Photo, 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