Documentation ¶
Index ¶
- func JobRun(jobId string) error
- func JobStop(jobId string) error
- func Reg(fileData []byte)
- func RegByUserConfig() error
- func RunStartTime() time.Time
- func RunTask(taskId string) error
- func StopAll()
- type BaseConfig
- type Job
- type JobConfig
- type JobListManager
- type JobStatus
- type OutputType
- type RunOptions
- type RunStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegByUserConfig ¶ added in v0.0.5
func RegByUserConfig() error
func RunStartTime ¶
Types ¶
type BaseConfig ¶
type BaseConfig struct { Dashboard struct { Port int `json:"port"` } `json:"dashboard"` }
func GetHttpConfig ¶
func GetHttpConfig() BaseConfig
type JobConfig ¶
type JobConfig struct { ResidentTask []Job `json:"residentTask"` ScheduledTask []Job `json:"scheduledTask"` Config BaseConfig `json:"config"` }
type JobListManager ¶
type JobListManager struct {
// contains filtered or unexported fields
}
type JobStatus ¶
type OutputType ¶
type OutputType int
const ( OutputTypeStd OutputType = iota // 输出到标准输入输出 OutputTypeFile // 输出到文件 )
type RunOptions ¶
type RunOptions struct { OutputType OutputType `json:"outputType"` // 输出方式 OutputPath string `json:"outputPath"` // 输出路径 MaxFailures int `json:"maxFailures"` // 最大失败次数 }
Click to show internal directories.
Click to hide internal directories.