Versions in this module Expand all Collapse all v0 v0.12.0 Feb 23, 2026 Changes in this version + var ErrResponseSent = errors.New("response already sent") + func HandleError(err error) error + type BaseHandler struct + func NewBaseHandler(sugar *zap.SugaredLogger) *BaseHandler + func (b *BaseHandler) Bind(ctx echo.Context, req interface{}) error + func (b *BaseHandler) BindAndValidate(ctx echo.Context, req interface{}) error + func (b *BaseHandler) GetActorFromClaims(ctx echo.Context, db *gorm.DB) (*uuid.UUID, string, error) + func (b *BaseHandler) HandleServiceError(ctx echo.Context, err error, operation, entityName string) error + func (b *BaseHandler) ParseUUID(ctx echo.Context, paramName, entityName string) (*uuid.UUID, error) + func (b *BaseHandler) RespondCreated(ctx echo.Context, data interface{}) error + func (b *BaseHandler) RespondNoContent(ctx echo.Context) error + func (b *BaseHandler) RespondOK(ctx echo.Context, data interface{}) error + type BulkReassignRoleResponse struct + Data BulkReassignRoleResponseData + type BulkReassignRoleResponseData struct + ExecutionID uuid.UUID + ReassignedCount int + ReassignedStepExecutionIDs []uuid.UUID + RoleName string + type CancelWorkflowExecutionRequest struct + Reason string + type ControlRelationshipHandler struct + func NewControlRelationshipHandler(sugar *zap.SugaredLogger, db *gorm.DB) *ControlRelationshipHandler + func (h *ControlRelationshipHandler) Activate(ctx echo.Context) error + func (h *ControlRelationshipHandler) Create(ctx echo.Context) error + func (h *ControlRelationshipHandler) Deactivate(ctx echo.Context) error + func (h *ControlRelationshipHandler) Delete(ctx echo.Context) error + func (h *ControlRelationshipHandler) Get(ctx echo.Context) error + func (h *ControlRelationshipHandler) List(ctx echo.Context) error + func (h *ControlRelationshipHandler) Register(api *echo.Group) + func (h *ControlRelationshipHandler) Update(ctx echo.Context) error + type ControlRelationshipListResponse struct + Data []workflows.ControlRelationship + type ControlRelationshipResponse struct + Data *workflows.ControlRelationship + type CreateControlRelationshipRequest struct + CatalogID string + ControlID string + Description string + IsActive *bool + RelationshipType string + Strength string + WorkflowDefinitionID *uuid.UUID + type CreateRoleAssignmentRequest struct + AssignedToID string + AssignedToType string + IsActive *bool + RoleName string + WorkflowInstanceID *uuid.UUID + type CreateWorkflowDefinitionRequest struct + Description string + EvidenceRequired string + GracePeriodDays *int + Name string + SuggestedCadence string + Version string + type CreateWorkflowInstanceRequest struct + Cadence string + Description string + GracePeriodDays *int + IsActive *bool + Name string + SystemSecurityPlanID string + WorkflowDefinitionID *uuid.UUID + type CreateWorkflowStepDefinitionRequest struct + DependsOn []string + Description string + EstimatedDuration int + EvidenceRequired []workflows.EvidenceRequirement + GracePeriodDays *int + Name string + ResponsibleRole string + WorkflowDefinitionID *uuid.UUID + type FailStepRequest struct + Reason string + type MyAssignmentsResponse struct + Data []workflows.StepExecution + HasMore bool + Limit int + Offset int + Total int64 + type ReassignRoleRequest struct + NewAssignedToID string + NewAssignedToType string + Reason string + RoleName string + type ReassignStepRequest struct + AssignedToID string + AssignedToType string + Reason string + type RoleAssignmentHandler struct + func NewRoleAssignmentHandler(sugar *zap.SugaredLogger, db *gorm.DB) *RoleAssignmentHandler + func (h *RoleAssignmentHandler) Activate(ctx echo.Context) error + func (h *RoleAssignmentHandler) Create(ctx echo.Context) error + func (h *RoleAssignmentHandler) Deactivate(ctx echo.Context) error + func (h *RoleAssignmentHandler) Delete(ctx echo.Context) error + func (h *RoleAssignmentHandler) Get(ctx echo.Context) error + func (h *RoleAssignmentHandler) List(ctx echo.Context) error + func (h *RoleAssignmentHandler) Register(api *echo.Group) + func (h *RoleAssignmentHandler) Update(ctx echo.Context) error + type RoleAssignmentListResponse struct + Data []workflows.RoleAssignment + type RoleAssignmentResponse struct + Data *workflows.RoleAssignment + type StartWorkflowExecutionRequest struct + TriggeredBy string + TriggeredByID string + WorkflowInstanceID *uuid.UUID + type StepExecutionHandler struct + func NewStepExecutionHandler(sugar *zap.SugaredLogger, db *gorm.DB, ...) *StepExecutionHandler + func (h *StepExecutionHandler) CanTransition(ctx echo.Context) error + func (h *StepExecutionHandler) Fail(ctx echo.Context) error + func (h *StepExecutionHandler) Get(ctx echo.Context) error + func (h *StepExecutionHandler) GetEvidenceRequirements(ctx echo.Context) error + func (h *StepExecutionHandler) List(ctx echo.Context) error + func (h *StepExecutionHandler) ListMy(ctx echo.Context) error + func (h *StepExecutionHandler) Reassign(ctx echo.Context) error + func (h *StepExecutionHandler) Register(api *echo.Group) + func (h *StepExecutionHandler) TransitionStep(ctx echo.Context) error + type StepExecutionListResponse struct + Data []workflows.StepExecution + type StepExecutionResponse struct + Data *workflows.StepExecution + type TransitionStepRequest struct + Evidence []workflow.EvidenceSubmission + Notes string + Status string + UserID string + UserType string + type UpdateControlRelationshipRequest struct + Description *string + RelationshipType *string + Strength *string + type UpdateRoleAssignmentRequest struct + AssignedToID *string + AssignedToType *string + type UpdateWorkflowDefinitionRequest struct + Description *string + EvidenceRequired *string + GracePeriodDays *int + Name *string + SuggestedCadence *string + Version *string + type UpdateWorkflowInstanceRequest struct + Cadence *string + Description *string + GracePeriodDays *int + IsActive *bool + Name *string + type UpdateWorkflowStepDefinitionRequest struct + DependsOn *[]string + Description *string + EstimatedDuration *int + EvidenceRequired *[]workflows.EvidenceRequirement + GracePeriodDays *int + Name *string + ResponsibleRole *string + type WorkflowDefinitionHandler struct + func NewWorkflowDefinitionHandler(sugar *zap.SugaredLogger, db *gorm.DB) *WorkflowDefinitionHandler + func (h *WorkflowDefinitionHandler) Create(ctx echo.Context) error + func (h *WorkflowDefinitionHandler) Delete(ctx echo.Context) error + func (h *WorkflowDefinitionHandler) Get(ctx echo.Context) error + func (h *WorkflowDefinitionHandler) List(ctx echo.Context) error + func (h *WorkflowDefinitionHandler) Register(api *echo.Group) + func (h *WorkflowDefinitionHandler) Update(ctx echo.Context) error + type WorkflowDefinitionListResponse struct + Data []workflows.WorkflowDefinition + type WorkflowDefinitionResponse struct + Data *workflows.WorkflowDefinition + type WorkflowExecutionHandler struct + func NewWorkflowExecutionHandler(sugar *zap.SugaredLogger, db *gorm.DB, manager *workflow.Manager, ...) *WorkflowExecutionHandler + func (h *WorkflowExecutionHandler) Cancel(ctx echo.Context) error + func (h *WorkflowExecutionHandler) Get(ctx echo.Context) error + func (h *WorkflowExecutionHandler) GetMetrics(ctx echo.Context) error + func (h *WorkflowExecutionHandler) GetStatus(ctx echo.Context) error + func (h *WorkflowExecutionHandler) List(ctx echo.Context) error + func (h *WorkflowExecutionHandler) ReassignRole(ctx echo.Context) error + func (h *WorkflowExecutionHandler) Register(api *echo.Group) + func (h *WorkflowExecutionHandler) Retry(ctx echo.Context) error + func (h *WorkflowExecutionHandler) Start(ctx echo.Context) error + type WorkflowExecutionListResponse struct + Data []workflows.WorkflowExecution + type WorkflowExecutionMetricsResponse struct + Data *workflow.ExecutionMetrics + type WorkflowExecutionResponse struct + Data *workflows.WorkflowExecution + type WorkflowExecutionStatusResponse struct + Data *workflow.ExecutionStatus + type WorkflowInstanceHandler struct + func NewWorkflowInstanceHandler(sugar *zap.SugaredLogger, db *gorm.DB) *WorkflowInstanceHandler + func (h *WorkflowInstanceHandler) Activate(ctx echo.Context) error + func (h *WorkflowInstanceHandler) Create(ctx echo.Context) error + func (h *WorkflowInstanceHandler) Deactivate(ctx echo.Context) error + func (h *WorkflowInstanceHandler) Delete(ctx echo.Context) error + func (h *WorkflowInstanceHandler) Get(ctx echo.Context) error + func (h *WorkflowInstanceHandler) List(ctx echo.Context) error + func (h *WorkflowInstanceHandler) Register(api *echo.Group) + func (h *WorkflowInstanceHandler) Update(ctx echo.Context) error + type WorkflowInstanceListResponse struct + Data []workflows.WorkflowInstance + type WorkflowInstanceResponse struct + Data *workflows.WorkflowInstance + type WorkflowStepDefinitionHandler struct + func NewWorkflowStepDefinitionHandler(sugar *zap.SugaredLogger, db *gorm.DB) *WorkflowStepDefinitionHandler + func (h *WorkflowStepDefinitionHandler) Create(ctx echo.Context) error + func (h *WorkflowStepDefinitionHandler) Delete(ctx echo.Context) error + func (h *WorkflowStepDefinitionHandler) Get(ctx echo.Context) error + func (h *WorkflowStepDefinitionHandler) GetDependencies(ctx echo.Context) error + func (h *WorkflowStepDefinitionHandler) ListByWorkflowDefinition(ctx echo.Context) error + func (h *WorkflowStepDefinitionHandler) Register(api *echo.Group) + func (h *WorkflowStepDefinitionHandler) Update(ctx echo.Context) error + type WorkflowStepDefinitionListResponse struct + Data []workflows.WorkflowStepDefinition + type WorkflowStepDefinitionResponse struct + Data *workflows.WorkflowStepDefinition