generated

package
v0.0.0-...-1bd8ba5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 13 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 {
		CreateRouter func(childComplexity int, input model.NewRouter) int
	}

	Query struct {
		Hello   func(childComplexity int) int
		Routers func(childComplexity int) int
		Story   func(childComplexity int) int
	}

	Router struct {
		Component func(childComplexity int) int
		Exact     func(childComplexity int) int
		ID        func(childComplexity int) int
		Icon      func(childComplexity int, theme *string) int
		Order     func(childComplexity int) int
		Path      func(childComplexity int) int
		Title     func(childComplexity int) int
	}

	UserStory struct {
		Dependency func(childComplexity int) int
		ID         func(childComplexity int) int
		Points     func(childComplexity int) int
		Priority   func(childComplexity int) int
		Risk       func(childComplexity int) int
		Story      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 {
	CreateRouter(ctx context.Context, input model.NewRouter) (*model.Router, error)
}

type QueryResolver

type QueryResolver interface {
	Hello(ctx context.Context) (string, error)
	Story(ctx context.Context) ([]*model.UserStory, error)
	Routers(ctx context.Context) ([]*model.Router, error)
}

type ResolverRoot

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

type UserStoryResolver

type UserStoryResolver interface {
	Dependency(ctx context.Context, obj *model.UserStory) ([]*model.UserStory, error)
}

Jump to

Keyboard shortcuts

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