Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogTimeUUIDHeader = "logTimeUUID" LogCompletedHeader = "logCompleted" )
View Source
const (
BASE_PATH = "/v1"
)
Variables ¶
This section is empty.
Functions ¶
func InitServer ¶
func InitServer()
func RouterGroup ¶
func RouterGroup() *gin.RouterGroup
Types ¶
type BatchQueryJobRequest ¶
type BatchQueryJobRequest struct { Service string `form:"service" json:"service" validate:"required"` Task string `form:"task" json:"task" validate:"required"` Domain string `form:"domain" json:"domain" validate:"required"` IDs []string `form:"IDs" json:"IDs" validate:"required"` }
func (BatchQueryJobRequest) GetJobIdentity ¶
func (q BatchQueryJobRequest) GetJobIdentity() common.JobIdentity
type CreateJobRequest ¶
type CreateJobRequest struct { Service string `form:"service" json:"service" validate:"required"` Task string `form:"task" json:"task" validate:"required"` Domain string `form:"domain" json:"domain" validate:"required"` UserID string `json:"userID" json:"userID" validate:"required"` Spec map[string]interface{} `json:"spec" json:"spec" validate:"required"` Engine string `json:"engine" json:"engine" validate:"required"` }
func (CreateJobRequest) GetJobResource ¶
func (q CreateJobRequest) GetJobResource() common.Job
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator(config appconfig.Config, group *gin.RouterGroup, logger *zap.Logger) (*Orchestrator, error)
func (*Orchestrator) Close ¶
func (r *Orchestrator) Close()
func (*Orchestrator) GetReloadDirs ¶
func (r *Orchestrator) GetReloadDirs() []string
func (*Orchestrator) Initialize ¶
func (r *Orchestrator) Initialize() error
func (*Orchestrator) Reload ¶
func (r *Orchestrator) Reload()
func (*Orchestrator) StartLoop ¶
func (r *Orchestrator) StartLoop() error
type QueryJobRequest ¶
type QueryJobRequest struct { Service string `form:"service" json:"service" validate:"required"` Task string `form:"task" json:"task" validate:"required"` Domain string `form:"domain" json:"domain" validate:"required"` ID string `form:"ID" json:"ID" validate:"required,uuid"` }
func (QueryJobRequest) GetJobIdentity ¶
func (q QueryJobRequest) GetJobIdentity() common.JobIdentity
type QueryJobStepLogRequest ¶
type QueryJobStepLogRequest struct { QueryJobRequest StepID string `form:"stepID" json:"stepID" validate:"required,number"` StartTimeUUID string `form:"startTimeUUID" json:"startTime"` MaxRecord int `form:"maxRecord" json:"maxRecord"` }
func (QueryJobStepLogRequest) GetJobIdentity ¶
func (q QueryJobStepLogRequest) GetJobIdentity() common.JobIdentity
Click to show internal directories.
Click to hide internal directories.