Documentation
¶
Index ¶
Constants ¶
View Source
const ( TASK_CREATED = "TASK_CREATED" TASK_RUNNING = "TASK_RUNNING" TASK_COMPLETED = "TASK_COMPLETED" TASK_FAILED = "TASK_FAILED" )
Variables ¶
View Source
var Db *gorm.DB
Functions ¶
This section is empty.
Types ¶
type NewPipeline ¶ added in v0.6.0
We use a 2D array because the request body must be an array of a set of tasks to be executed concurrently, while each set is to be executed sequentially.
type Notification ¶ added in v0.3.0
type Notification struct {
common.Model
Type NotificationType
Endpoint string
Nonce string
ResponseCode int
Response string
Data string
}
Notification records notifications sent by lake
type NotificationType ¶ added in v0.3.0
type NotificationType string
const (
NotificationPipelineStatusChanged NotificationType = "PipelineStatusChanged"
)
type Pipeline ¶ added in v0.6.0
type Pipeline struct {
common.Model
Name string `json:"name" gorm:"index"`
Tasks datatypes.JSON `json:"tasks"`
TotalTasks int `json:"totalTasks"`
FinishedTasks int `json:"finishedTasks"`
BeganAt *time.Time `json:"beganAt"`
FinishedAt *time.Time `json:"finishedAt" gorm:"index"`
Status string `json:"status"`
Message string `json:"message"`
SpentSeconds int `json:"spentSeconds"`
}
type Task ¶
type Task struct {
common.Model
Plugin string `json:"plugin" gorm:"index"`
Options datatypes.JSON `json:"options"`
Status string `json:"status"`
Message string `json:"message"`
Progress float32 `json:"progress"`
FailedSubTask string `json:"failedSubTask"`
PipelineId uint64 `json:"pipelineId" gorm:"index"`
PipelineRow int `json:"pipelineRow"`
PipelineCol int `json:"pipelineCol"`
BeganAt *time.Time `json:"beganAt"`
FinishedAt *time.Time `json:"finishedAt" gorm:"index"`
SpentSeconds int `json:"spentSeconds"`
}
Click to show internal directories.
Click to hide internal directories.