controllers

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: Apache-2.0 Imports: 15 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 UsersController added in v1.4.0

type UsersController struct {
	AuthController
	UserRepo *repository.UserRepository
}

func NewUsersController added in v1.4.0

func NewUsersController(userRepo *repository.UserRepository) *UsersController

func (*UsersController) RegisterRoutes added in v1.4.0

func (c *UsersController) RegisterRoutes()

RegisterRoutes wires up the HTTP routes for this controller

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