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 { DecisionDef struct { AppID func(childComplexity int) int Category func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeploymentID func(childComplexity int) int ID func(childComplexity int) int Key func(childComplexity int) int Name func(childComplexity int) int ReqDef func(childComplexity int) int ReqDefID func(childComplexity int) int ReqDefKey func(childComplexity int) int Revision func(childComplexity int) int TenantID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Version func(childComplexity int) int VersionTag func(childComplexity int) int } DecisionReqDef struct { AppID func(childComplexity int) int Category func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DecisionDefs func(childComplexity int) int Deployment func(childComplexity int) int DeploymentID func(childComplexity int) int ID func(childComplexity int) int Key func(childComplexity int) int Name func(childComplexity int) int ResourceID func(childComplexity int) int ResourceKey func(childComplexity int) int Revision func(childComplexity int) int TenantID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Version func(childComplexity int) int } Deployment struct { AppID func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DecisionReqs func(childComplexity int) int DeployTime func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int ProcDefs func(childComplexity int) int Source func(childComplexity int) int TenantID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } IdentityLink struct { AssignerID func(childComplexity int) int Comments func(childComplexity int) int GroupID func(childComplexity int) int ID func(childComplexity int) int LinkType func(childComplexity int) int OperationType func(childComplexity int) int ProcDefID func(childComplexity int) int Task func(childComplexity int) int TaskID func(childComplexity int) int TenantID func(childComplexity int) int UserID func(childComplexity int) int } Mutation struct { AbandonTask func(childComplexity int, taskID int) int ClaimTask func(childComplexity int, taskID int) int CompleteTask func(childComplexity int, input ent.UpdateIdentityLinkInput) int DeployDiagram func(childComplexity int, input model.DeployDiagramInput) int StartProcessInstance func(childComplexity int, input model.StartProcessInput) int StartWorkflow func(childComplexity int, input types.WorkflowRun) int } OrgRole struct { ID func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int OrgID func(childComplexity int) int } OrgUser struct { DisplayName func(childComplexity int) int ID func(childComplexity int) int JoinedAt func(childComplexity int) int OrgID func(childComplexity int) int UserID func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } ProcDef struct { AppID func(childComplexity int) int Category func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int Deployment func(childComplexity int) int DeploymentID func(childComplexity int) int ID func(childComplexity int) int Key func(childComplexity int) int Name func(childComplexity int) int ProcInstances func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.ProcInstOrder, where *ent.ProcInstWhereInput) int ResourceID func(childComplexity int) int ResourceKey func(childComplexity int) int Revision func(childComplexity int) int Status func(childComplexity int) int TenantID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Version func(childComplexity int) int VersionTag func(childComplexity int) int } ProcInst struct { AppID func(childComplexity int) int BusinessKey func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedReason func(childComplexity int) int DeletedTime func(childComplexity int) int Duration func(childComplexity int) int EndTime func(childComplexity int) int ID func(childComplexity int) int ProcDef func(childComplexity int) int ProcDefID func(childComplexity int) int RootInstanceID func(childComplexity int) int StartTime func(childComplexity int) int StartUserID func(childComplexity int) int Status func(childComplexity int) int SupperInstanceID func(childComplexity int) int Tasks func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.TaskWhereInput) int TenantID func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } ProcInstConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } ProcInstEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Query struct { Deployments func(childComplexity int) int Node func(childComplexity int, id string) int Nodes func(childComplexity int, ids []string) int ProcInsts func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.ProcInstOrder, where *ent.ProcInstWhereInput) int Tasks func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.TaskWhereInput) int } Task struct { AgreeCount func(childComplexity int) int Assignee func(childComplexity int) int Comments func(childComplexity int) int CreatedAt func(childComplexity int) int ExecutionID func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int MemberCount func(childComplexity int) int ParentID func(childComplexity int) int ProcDefID func(childComplexity int) int ProcInst func(childComplexity int) int ProcInstID func(childComplexity int) int RunID func(childComplexity int) int Sequential func(childComplexity int) int Status func(childComplexity int) int TaskDefKey func(childComplexity int) int TaskIdentities func(childComplexity int) int TenantID func(childComplexity int) int UnfinishedCount func(childComplexity int) int UpdatedAt func(childComplexity int) int } TaskConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } TaskEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } WorkflowRun struct { ID func(childComplexity int) int RunID 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 { DeployDiagram(ctx context.Context, input model.DeployDiagramInput) (*ent.Deployment, error) StartProcessInstance(ctx context.Context, input model.StartProcessInput) (*types.WorkflowRun, error) StartWorkflow(ctx context.Context, input types.WorkflowRun) (bool, error) ClaimTask(ctx context.Context, taskID int) (bool, error) CompleteTask(ctx context.Context, input ent.UpdateIdentityLinkInput) (bool, error) AbandonTask(ctx context.Context, taskID int) (bool, error) }
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id string) (ent.Noder, error) Nodes(ctx context.Context, ids []string) ([]ent.Noder, error) Deployments(ctx context.Context) ([]*ent.Deployment, error) ProcInsts(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.ProcInstOrder, where *ent.ProcInstWhereInput) (*ent.ProcInstConnection, error) Tasks(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.TaskWhereInput) (*ent.TaskConnection, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.