forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cockroachdb#31 from crowdflux/gopher
Work Flow Builder Changes
- Loading branch information
Showing
23 changed files
with
586 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package step_repo | ||
|
||
import "github.com/crowdflux/angel/app/services/plerrors" | ||
|
||
var ErrSteptNotFound = plerrors.ServiceError{"SR_0001", "Step not found"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package workflow_repo | ||
|
||
import "github.com/crowdflux/angel/app/services/plerrors" | ||
|
||
var ErrWorkflowNotFound = plerrors.ServiceError{"WR_0001", "WorkFlow not found"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package work_flow_builder_svc | ||
|
||
import ( | ||
"github.com/crowdflux/angel/app/DAL/repositories/projects_repo" | ||
"github.com/crowdflux/angel/app/DAL/repositories/step_repo" | ||
"github.com/crowdflux/angel/app/DAL/repositories/step_router_repo" | ||
"github.com/crowdflux/angel/app/DAL/repositories/workflow_repo" | ||
"github.com/crowdflux/angel/app/models" | ||
"github.com/crowdflux/angel/app/models/uuid" | ||
) | ||
|
||
type IWorkflowBuilderService interface { | ||
GetWorkflowContainer(uuid.UUID) (models.WorkflowContainer, error) | ||
AddWorkflowContainer(models.WorkflowContainer) (models.WorkflowContainer, error) | ||
InitWorkflowContainer(uuid.UUID) (models.WorkflowContainer, error) | ||
UpdateWorkflowContainer(models.WorkflowContainer) (models.WorkflowContainer, error) | ||
} | ||
|
||
func New() IWorkflowBuilderService { | ||
return &workFlowBuilderService{ | ||
stepRepo: step_repo.New(), | ||
stepRouterRepo: step_router_repo.New(), | ||
workflowRepo: workflow_repo.New(), | ||
projectsRep: projects_repo.New(), | ||
} | ||
} |
Oops, something went wrong.