generated

package
v0.0.0-...-7920a39 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: GPL-3.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 {
		CreateWorkflow             func(childComplexity int, automationID string, workflow model.WorkflowInput) int
		PatchWorkflowSpecification func(childComplexity int, id string, patch string) int
	}

	Query struct {
		Workflow func(childComplexity int, id string) int
	}

	Workflow struct {
		AutomationID         func(childComplexity int) int
		CreatorID            func(childComplexity int) int
		ID                   func(childComplexity int) int
		Name                 func(childComplexity int) int
		Specification        func(childComplexity int) int
		SpecificationFileURL func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	Tag func(ctx context.Context, obj interface{}, next graphql.Resolver, validate *string) (res interface{}, err error)
}

type MutationResolver

type MutationResolver interface {
	CreateWorkflow(ctx context.Context, automationID string, workflow model.WorkflowInput) (*model.Workflow, error)
	PatchWorkflowSpecification(ctx context.Context, id string, patch string) (*model.Workflow, error)
}

type QueryResolver

type QueryResolver interface {
	Workflow(ctx context.Context, id string) (*model.Workflow, 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