Documentation ¶
Index ¶
- func GetJobResult(handler gorexos.RequestHandler, jobId string, w io.Writer) error
- func GetPipelines(handler gorexos.RequestHandler) ([]string, error)
- func GetSupportedFormats(handler gorexos.RequestHandler) ([]string, error)
- func StartJob(handler gorexos.RequestHandler, jobId string, pipeline string) error
- func UploadFile(handler gorexos.RequestHandler, jobId string, fileName string, r io.Reader) error
- type Job
- type StringList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJobResult ¶
GetJobResult gets the data from the job
func GetPipelines ¶
func GetPipelines(handler gorexos.RequestHandler) ([]string, error)
GetPipelines get all the available pipelines
func GetSupportedFormats ¶
func GetSupportedFormats(handler gorexos.RequestHandler) ([]string, error)
GetSupportedFormats get all the supported file formats
func StartJob ¶
func StartJob(handler gorexos.RequestHandler, jobId string, pipeline string) error
StartJob starts a job
func UploadFile ¶
Types ¶
type Job ¶
Job contains the specification of a translation job
type StringList ¶
type StringList struct {
Names []string `json:"names"`
}
Click to show internal directories.
Click to hide internal directories.