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 { AuditLog struct { ElementID func(childComplexity int) int ElementType func(childComplexity int) int Intent func(childComplexity int) int Position func(childComplexity int) int Time func(childComplexity int) int } Incident struct { ElementID func(childComplexity int) int ErrorMessage func(childComplexity int) int ErrorType func(childComplexity int) int IncidentKey func(childComplexity int) int Instance func(childComplexity int) int InstanceKey func(childComplexity int) int State func(childComplexity int) int Time func(childComplexity int) int } Instance struct { AuditLogs func(childComplexity int, pagination *model.Pagination) int EndTime func(childComplexity int) int Incidents func(childComplexity int, pagination *model.Pagination) int InstanceKey func(childComplexity int) int Jobs func(childComplexity int, pagination *model.Pagination) int Process func(childComplexity int) int ProcessKey func(childComplexity int) int StartTime func(childComplexity int) int Status func(childComplexity int) int Variables func(childComplexity int, pagination *model.Pagination, filter *model.VariableFilter) int Version func(childComplexity int) int } Job struct { ElementID func(childComplexity int) int Instance func(childComplexity int) int InstanceKey func(childComplexity int) int Key func(childComplexity int) int Retries func(childComplexity int) int State func(childComplexity int) int Time func(childComplexity int) int Type func(childComplexity int) int Worker func(childComplexity int) int } PaginatedAuditLogs struct { Items func(childComplexity int) int TotalCount func(childComplexity int) int } PaginatedIncidents struct { Items func(childComplexity int) int TotalCount func(childComplexity int) int } PaginatedInstances struct { Items func(childComplexity int) int TotalCount func(childComplexity int) int } PaginatedJobs struct { Items func(childComplexity int) int TotalCount func(childComplexity int) int } PaginatedProcesses struct { Items func(childComplexity int) int TotalCount func(childComplexity int) int } PaginatedVariables struct { Items func(childComplexity int) int TotalCount func(childComplexity int) int } Process struct { BpmnProcessID func(childComplexity int) int BpmnResource func(childComplexity int) int DeploymentTime func(childComplexity int) int Instances func(childComplexity int, pagination *model.Pagination) int ProcessKey func(childComplexity int) int Version func(childComplexity int) int } Query struct { Incidents func(childComplexity int, pagination *model.Pagination) int Instance func(childComplexity int, instanceKey int64) int Instances func(childComplexity int, pagination *model.Pagination) int Jobs func(childComplexity int, pagination *model.Pagination) int Process func(childComplexity int, processKey int64) int Processes func(childComplexity int, pagination *model.Pagination) int } Variable struct { Name func(childComplexity int) int Time func(childComplexity int) int Value func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type IncidentResolver ¶
type InstanceResolver ¶
type InstanceResolver interface { AuditLogs(ctx context.Context, obj *model.Instance, pagination *model.Pagination) (*model.PaginatedAuditLogs, error) Incidents(ctx context.Context, obj *model.Instance, pagination *model.Pagination) (*model.PaginatedIncidents, error) Jobs(ctx context.Context, obj *model.Instance, pagination *model.Pagination) (*model.PaginatedJobs, error) Variables(ctx context.Context, obj *model.Instance, pagination *model.Pagination, filter *model.VariableFilter) (*model.PaginatedVariables, error) Process(ctx context.Context, obj *model.Instance) (*model.Process, error) }
type JobResolver ¶
type ProcessResolver ¶
type QueryResolver ¶
type QueryResolver interface { Processes(ctx context.Context, pagination *model.Pagination) (*model.PaginatedProcesses, error) Process(ctx context.Context, processKey int64) (*model.Process, error) Instances(ctx context.Context, pagination *model.Pagination) (*model.PaginatedInstances, error) Instance(ctx context.Context, instanceKey int64) (*model.Instance, error) Incidents(ctx context.Context, pagination *model.Pagination) (*model.PaginatedIncidents, error) Jobs(ctx context.Context, pagination *model.Pagination) (*model.PaginatedJobs, error) }
type Resolver ¶
func (*Resolver) Incident ¶
func (r *Resolver) Incident() IncidentResolver
Incident returns IncidentResolver implementation.
func (*Resolver) Instance ¶
func (r *Resolver) Instance() InstanceResolver
Instance returns InstanceResolver implementation.
func (*Resolver) Process ¶
func (r *Resolver) Process() ProcessResolver
Process returns ProcessResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Incident() IncidentResolver Instance() InstanceResolver Job() JobResolver Process() ProcessResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.