controllers

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL