Documentation ¶
Index ¶
Constants ¶
View Source
const ( JobCreated = JobStatus("created") JobDownloading = JobStatus("downloading") JobProcessing = JobStatus("processing") JobUploading = JobStatus("uploading") JobFinished = JobStatus("finished") JobError = JobStatus("error") )
These constants are used on the status field of Job type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { ID string `json:"id"` Source string `json:"source"` Destination string `json:"destination"` Media MediaType `json:"mediaType"` Status JobStatus `json:"status"` Details string `json:"details"` LocalSource string `json:"-"` LocalDestination string `json:"-"` }
Job is the set of parameters of a given job
type JobInput ¶
type JobInput struct { Source string `json:"source"` Destination string `json:"destination"` Cate Category `json:"cate"` }
JobInput stores the information passed from the user when creating a job.
type MediaType ¶
type MediaType struct { Cate Category `json:"cate"` Name string `json:"name"` Container string `json:"container"` }
MediaType defines the type of output file
type ServerConfig ¶
type ServerConfig struct { ServerName string `required:"true"` System SystemConfig `required:"true"` Yolo YoloConfig `required:"true"` }
ServerConfig contains the system and yolo configuration
type SystemConfig ¶
type SystemConfig struct { SwapDir string `required:"true"` Logfile string `required:"false"` Port string `required:"true"` DBDriver string `required:"true"` MongoHost string `required:"false"` NGpu int `required:"true"` Workers int `required:"true"` }
SystemConfig contains the system configuration
Click to show internal directories.
Click to hide internal directories.