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 { Group struct { ID func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int Parent func(childComplexity int) int } Mutation struct { CreateGroup func(childComplexity int, name string, input *provider.CreateGroupOptions) int CreatePipeline func(childComplexity int, group string, name string, input *provider.CreatePipelineOptions) int DeleteGroup func(childComplexity int, id string) int DeletePipeline func(childComplexity int, id string) int } Pipeline struct { Group func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int } Query struct { Version func(childComplexity int) int } Version struct { Version func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type GroupResolver ¶
type MutationResolver ¶
type MutationResolver interface { CreateGroup(ctx context.Context, name string, input *provider.CreateGroupOptions) (*provider.Group, error) DeleteGroup(ctx context.Context, id string) (string, error) CreatePipeline(ctx context.Context, group string, name string, input *provider.CreatePipelineOptions) (*provider.Pipeline, error) DeletePipeline(ctx context.Context, id string) (string, error) }
type PipelineResolver ¶
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Group() GroupResolver Mutation() MutationResolver Pipeline() PipelineResolver Query() QueryResolver CreateGroupOptions() CreateGroupOptionsResolver CreatePipelineOptions() CreatePipelineOptionsResolver }
Click to show internal directories.
Click to hide internal directories.