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 { ActionRecord struct { Args func(childComplexity int) int Error func(childComplexity int) int FinishedAt func(childComplexity int) int ID func(childComplexity int) int Next func(childComplexity int) int Result func(childComplexity int) int Seq func(childComplexity int) int StartedAt func(childComplexity int) int Uses func(childComplexity int) int } AlertRecord struct { CreatedAt func(childComplexity int) int Data func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int InitAttrs func(childComplexity int) int LastAttrs func(childComplexity int) int Namespace func(childComplexity int) int Refs func(childComplexity int) int Schema func(childComplexity int) int Source func(childComplexity int) int Title func(childComplexity int) int } ArgumentRecord struct { Key func(childComplexity int) int Value func(childComplexity int) int } AttributeRecord struct { ID func(childComplexity int) int Key func(childComplexity int) int Persist func(childComplexity int) int TTL func(childComplexity int) int Type func(childComplexity int) int Value func(childComplexity int) int } NextRecord struct { Abort func(childComplexity int) int Attrs func(childComplexity int) int } Query struct { Workflow func(childComplexity int, id string) int Workflows func(childComplexity int, offset *int, limit *int) int } ReferenceRecord struct { Title func(childComplexity int) int URL func(childComplexity int) int } WorkflowRecord struct { Actions func(childComplexity int) int Alert func(childComplexity int) int CreatedAt func(childComplexity int) int ID func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) WorkflowRecord ¶
func (r *Resolver) WorkflowRecord() WorkflowRecordResolver
WorkflowRecord returns WorkflowRecordResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Query() QueryResolver WorkflowRecord() WorkflowRecordResolver }
type WorkflowRecordResolver ¶
type WorkflowRecordResolver interface {
Actions(ctx context.Context, obj *model.WorkflowRecord) ([]*model.ActionRecord, error)
}
Click to show internal directories.
Click to hide internal directories.