Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CrontabArgs ¶
func (*CrontabArgs) Scan ¶
func (c *CrontabArgs) Scan(v interface{}) error
type CrontabTask ¶
type CrontabTask struct {
gorm.Model
Name string `gorm:"unique;not null"`
Command string
Depends DependsTasks `gorm:"type:TEXT"`
PipeCommands PipeComamnds `gorm:"type:TEXT"`
State int // 0/1/2
Args string
Create int64
LastCostTime int64
LastExecTime int64
LastExitStatus string
Timeout int64
NumberProcess int32
TimerCounter int32
UnexpectedExitMail bool
UnexpectedExitApi bool
Sync bool // 脚本是否同步执行
MailTo string
ApiTo string
MaxConcurrent int // 脚本最大并发量
OpTimeout string // email/kill/email_and_kill/ignore/api
C CrontabArgs `gorm:"type:TEXT"`
}
type DaemonTask ¶
type DependsTask ¶
type DependsTasks ¶
type DependsTasks []DependsTask
func (*DependsTasks) Scan ¶
func (d *DependsTasks) Scan(v interface{}) error
type PipeComamnds ¶
type PipeComamnds [][]string
func (*PipeComamnds) Scan ¶
func (p *PipeComamnds) Scan(v interface{}) error
Click to show internal directories.
Click to hide internal directories.