models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	ID        int64 `gorm:"primaryKey;autoIncrement"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Pipeline

type Pipeline struct {
	Base
	Name string `gorm:"uniqueIndex;size:255;not null"`
}

Pipeline represents a processing pipeline.

type PipelineStep

type PipelineStep struct {
	Base
	PipelineID int64    `gorm:"uniqueIndex:idx_pipeline_step;not null"`
	Pipeline   Pipeline `gorm:"constraint:OnDelete:CASCADE"`
	StepID     int64    `gorm:"uniqueIndex:idx_pipeline_step;not null"`
	Step       Step     `gorm:"constraint:OnDelete:CASCADE"`
	JoinType   string   `gorm:"size:10;not null;default:all"`
}

PipelineStep associates a step with a pipeline.

type Step

type Step struct {
	Base
	Name string `gorm:"uniqueIndex;size:255;not null"`
	Kind string `gorm:"size:100;not null"`
}

Step represents a single step in a pipeline.

type StepDependency

type StepDependency struct {
	Base
	StepID      int64 `gorm:"uniqueIndex:idx_step_dependency;not null"`
	Step        Step  `gorm:"foreignKey:StepID;constraint:OnDelete:CASCADE"`
	DependsOnID int64 `gorm:"uniqueIndex:idx_step_dependency;not null"`
	DependsOn   Step  `gorm:"foreignKey:DependsOnID;constraint:OnDelete:CASCADE"`
}

StepDependency links a step to another step it depends on.

Jump to

Keyboard shortcuts

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