translation

package
v0.0.0-...-bde9636 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJobResult

func GetJobResult(handler gorexos.RequestHandler, jobId string, w io.Writer) error

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

func UploadFile(handler gorexos.RequestHandler, jobId string, fileName string, r io.Reader) error

Types

type Job

type Job struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
}

Job contains the specification of a translation job

func CreateJob

func CreateJob(handler gorexos.RequestHandler, job Job) (Job, error)

CreateJob creates a new translation job

func GetJob

func GetJob(handler gorexos.RequestHandler, jobId string) (Job, error)

GetJob gets the current status of the job

type StringList

type StringList struct {
	Names []string `json:"names"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL