Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionsController ¶
type ActionsController struct { AuthController WorkflowRepo *repository.WorkflowRepository WorkflowActionRepo *repository.WorkflowActionRepository }
func NewActionsController ¶
func NewActionsController(workflowRepo *repository.WorkflowRepository, workflowActionsRepo *repository.WorkflowActionRepository, userRepo *repository.UserRepository) *ActionsController
func (*ActionsController) RegisterRoutes ¶
func (c *ActionsController) RegisterRoutes()
type AuthController ¶
type AuthController struct {
UserRepo *repository.UserRepository
}
func NewBaseController ¶
func NewBaseController(userRepo *repository.UserRepository) *AuthController
func (*AuthController) RequireAuth ¶
func (wc *AuthController) RequireAuth(next http.HandlerFunc) http.HandlerFunc
type ExecutorsController ¶
type ExecutorsController struct { AuthController ExecutorsRepo *repository.ExecutorRepository }
func NewExecutorsController ¶
func NewExecutorsController( workflowExecutorsRepo *repository.ExecutorRepository, userRepo *repository.UserRepository) *ExecutorsController
func (*ExecutorsController) RegisterRoutes ¶
func (c *ExecutorsController) RegisterRoutes()
type WorkflowsController ¶
type WorkflowsController struct { AuthController WorkflowRepo *repository.WorkflowRepository WorkflowActionRepo *repository.WorkflowActionRepository WorkflowManager *engine.WorkflowManager }
WorkflowsController holds dependencies for workflow HTTP endpoints.
func NewWorkflowsController ¶
func NewWorkflowsController(workflowRepo *repository.WorkflowRepository, workflowActionsRepo *repository.WorkflowActionRepository, workflowManager *engine.WorkflowManager, userRepo *repository.UserRepository) *WorkflowsController
func (*WorkflowsController) RegisterRoutes ¶
func (c *WorkflowsController) RegisterRoutes()
RegisterRoutes wires the HTTP routes for this controller.
Click to show internal directories.
Click to hide internal directories.