repository

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkflowExecutionStage

type WorkflowExecutionStage struct {
	Id           int                         `sql:"id,pk"`
	StageName    bean.WorkflowStageName      `sql:"stage_name,notnull"` // same as app name
	Status       bean.WorkflowStageStatus    `sql:"status"`
	StatusFor    bean.WorkflowStageStatusFor `sql:"status_for"`
	Message      string                      `sql:"message"`
	Metadata     string                      `sql:"metadata"`
	WorkflowId   int                         `sql:"workflow_id,notnull"`
	WorkflowType string                      `sql:"workflow_type,notnull"`
	StartTime    string                      `sql:"start_time"`
	EndTime      string                      `sql:"end_time"`

	sql.AuditLog
	// contains filtered or unexported fields
}

type WorkflowStageRepository

type WorkflowStageRepository interface {
	SaveWorkflowStages(workflowStage []*WorkflowExecutionStage, tx *pg.Tx) ([]*WorkflowExecutionStage, error)
	UpdateWorkflowStages(workflowStage []*WorkflowExecutionStage, tx *pg.Tx) ([]*WorkflowExecutionStage, error)
	GetWorkflowStagesByWorkflowIdAndType(workflowId int, workflowType string) ([]*WorkflowExecutionStage, error)
	GetWorkflowStagesByWorkflowIdAndWtype(wfId int, wfType string) ([]*WorkflowExecutionStage, error)
	GetWorkflowStagesByWorkflowIdsAndWtype(wfIds []int, wfType string) ([]*WorkflowExecutionStage, error)
}

type WorkflowStageRepositoryImpl

type WorkflowStageRepositoryImpl struct {
	// contains filtered or unexported fields
}

func NewWorkflowStageRepositoryImpl

func NewWorkflowStageRepositoryImpl(logger *zap.SugaredLogger,
	dbConnection *pg.DB) *WorkflowStageRepositoryImpl

func (*WorkflowStageRepositoryImpl) GetWorkflowStagesByWorkflowIdAndType

func (impl *WorkflowStageRepositoryImpl) GetWorkflowStagesByWorkflowIdAndType(workflowId int, workflowType string) ([]*WorkflowExecutionStage, error)

func (*WorkflowStageRepositoryImpl) GetWorkflowStagesByWorkflowIdAndWtype

func (impl *WorkflowStageRepositoryImpl) GetWorkflowStagesByWorkflowIdAndWtype(wfId int, wfType string) ([]*WorkflowExecutionStage, error)

func (*WorkflowStageRepositoryImpl) GetWorkflowStagesByWorkflowIdsAndWtype

func (impl *WorkflowStageRepositoryImpl) GetWorkflowStagesByWorkflowIdsAndWtype(wfIds []int, wfType string) ([]*WorkflowExecutionStage, error)

func (*WorkflowStageRepositoryImpl) SaveWorkflowStages

func (impl *WorkflowStageRepositoryImpl) SaveWorkflowStages(workflowStages []*WorkflowExecutionStage, tx *pg.Tx) ([]*WorkflowExecutionStage, error)

func (*WorkflowStageRepositoryImpl) UpdateWorkflowStages

func (impl *WorkflowStageRepositoryImpl) UpdateWorkflowStages(workflowStages []*WorkflowExecutionStage, tx *pg.Tx) ([]*WorkflowExecutionStage, error)

Jump to

Keyboard shortcuts

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