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 { Dep struct { Detached func(childComplexity int) int Name func(childComplexity int) int } DetachedTask struct { Duration func(childComplexity int) int EndAt func(childComplexity int) int ID func(childComplexity int) int Outputs func(childComplexity int) int StartAt func(childComplexity int) int Status func(childComplexity int) int Tasks func(childComplexity int) int } Elk struct { Env func(childComplexity int) int EnvFile func(childComplexity int) int Tasks func(childComplexity int) int Vars func(childComplexity int) int Version func(childComplexity int) int } Log struct { Error func(childComplexity int) int Format func(childComplexity int) int Out func(childComplexity int) int } Mutation struct { Detached func(childComplexity int, tasks []string, properties *model.TaskProperties, config *model.RunConfig) int Kill func(childComplexity int, id string) int Run func(childComplexity int, tasks []string, properties *model.TaskProperties) int } Output struct { Error func(childComplexity int) int Out func(childComplexity int) int Task func(childComplexity int) int } Query struct { Detached func(childComplexity int, id *string) int Elk func(childComplexity int) int Health func(childComplexity int) int Tasks func(childComplexity int, name *string) int } Task struct { Cmds func(childComplexity int) int Deps func(childComplexity int) int Description func(childComplexity int) int Dir func(childComplexity int) int Env func(childComplexity int) int EnvFile func(childComplexity int) int IgnoreError func(childComplexity int) int Log func(childComplexity int) int Name func(childComplexity int) int Sources func(childComplexity int) int Tags func(childComplexity int) int Title func(childComplexity int) int Vars 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 { Run(ctx context.Context, tasks []string, properties *model.TaskProperties) ([]*model.Output, error) Detached(ctx context.Context, tasks []string, properties *model.TaskProperties, config *model.RunConfig) (*model.DetachedTask, error) Kill(ctx context.Context, id string) (*model.DetachedTask, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.