Versions in this module Expand all Collapse all v0 v0.3.0 Jan 25, 2023 v0.2.0 Jan 25, 2023 v0.1.0 Jan 25, 2023 Changes in this version + var EndpointMap map[string]string + var EndpointType = "regional" + func GetEndpointMap() map[string]string + func GetEndpointType() string + func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) + func SetEndpointDataToClient(client *Client) + type CertificateTranslateItemDTO struct + Key string + KeyTranslation string + Value string + ValueTranslation string + type Client struct + func NewClient() (client *Client, err error) + func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) + func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) + func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) + func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) + func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error) + func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) + func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) + func (client *Client) CreateDocTranslateTask(request *CreateDocTranslateTaskRequest) (response *CreateDocTranslateTaskResponse, err error) + func (client *Client) CreateDocTranslateTaskWithCallback(request *CreateDocTranslateTaskRequest, ...) <-chan int + func (client *Client) CreateDocTranslateTaskWithChan(request *CreateDocTranslateTaskRequest) (<-chan *CreateDocTranslateTaskResponse, <-chan error) + func (client *Client) CreateImageTranslateTask(request *CreateImageTranslateTaskRequest) (response *CreateImageTranslateTaskResponse, err error) + func (client *Client) CreateImageTranslateTaskWithCallback(request *CreateImageTranslateTaskRequest, ...) <-chan int + func (client *Client) CreateImageTranslateTaskWithChan(request *CreateImageTranslateTaskRequest) (<-chan *CreateImageTranslateTaskResponse, <-chan error) + func (client *Client) GetBatchTranslate(request *GetBatchTranslateRequest) (response *GetBatchTranslateResponse, err error) + func (client *Client) GetBatchTranslateWithCallback(request *GetBatchTranslateRequest, ...) <-chan int + func (client *Client) GetBatchTranslateWithChan(request *GetBatchTranslateRequest) (<-chan *GetBatchTranslateResponse, <-chan error) + func (client *Client) GetDetectLanguage(request *GetDetectLanguageRequest) (response *GetDetectLanguageResponse, err error) + func (client *Client) GetDetectLanguageWithCallback(request *GetDetectLanguageRequest, ...) <-chan int + func (client *Client) GetDetectLanguageWithChan(request *GetDetectLanguageRequest) (<-chan *GetDetectLanguageResponse, <-chan error) + func (client *Client) GetDocTranslateTask(request *GetDocTranslateTaskRequest) (response *GetDocTranslateTaskResponse, err error) + func (client *Client) GetDocTranslateTaskWithCallback(request *GetDocTranslateTaskRequest, ...) <-chan int + func (client *Client) GetDocTranslateTaskWithChan(request *GetDocTranslateTaskRequest) (<-chan *GetDocTranslateTaskResponse, <-chan error) + func (client *Client) GetImageDiagnose(request *GetImageDiagnoseRequest) (response *GetImageDiagnoseResponse, err error) + func (client *Client) GetImageDiagnoseWithCallback(request *GetImageDiagnoseRequest, ...) <-chan int + func (client *Client) GetImageDiagnoseWithChan(request *GetImageDiagnoseRequest) (<-chan *GetImageDiagnoseResponse, <-chan error) + func (client *Client) GetImageTranslate(request *GetImageTranslateRequest) (response *GetImageTranslateResponse, err error) + func (client *Client) GetImageTranslateTask(request *GetImageTranslateTaskRequest) (response *GetImageTranslateTaskResponse, err error) + func (client *Client) GetImageTranslateTaskWithCallback(request *GetImageTranslateTaskRequest, ...) <-chan int + func (client *Client) GetImageTranslateTaskWithChan(request *GetImageTranslateTaskRequest) (<-chan *GetImageTranslateTaskResponse, <-chan error) + func (client *Client) GetImageTranslateWithCallback(request *GetImageTranslateRequest, ...) <-chan int + func (client *Client) GetImageTranslateWithChan(request *GetImageTranslateRequest) (<-chan *GetImageTranslateResponse, <-chan error) + func (client *Client) GetTitleDiagnose(request *GetTitleDiagnoseRequest) (response *GetTitleDiagnoseResponse, err error) + func (client *Client) GetTitleDiagnoseWithCallback(request *GetTitleDiagnoseRequest, ...) <-chan int + func (client *Client) GetTitleDiagnoseWithChan(request *GetTitleDiagnoseRequest) (<-chan *GetTitleDiagnoseResponse, <-chan error) + func (client *Client) GetTitleGenerate(request *GetTitleGenerateRequest) (response *GetTitleGenerateResponse, err error) + func (client *Client) GetTitleGenerateWithCallback(request *GetTitleGenerateRequest, ...) <-chan int + func (client *Client) GetTitleGenerateWithChan(request *GetTitleGenerateRequest) (<-chan *GetTitleGenerateResponse, <-chan error) + func (client *Client) GetTitleIntelligence(request *GetTitleIntelligenceRequest) (response *GetTitleIntelligenceResponse, err error) + func (client *Client) GetTitleIntelligenceWithCallback(request *GetTitleIntelligenceRequest, ...) <-chan int + func (client *Client) GetTitleIntelligenceWithChan(request *GetTitleIntelligenceRequest) (<-chan *GetTitleIntelligenceResponse, <-chan error) + func (client *Client) GetTranslateReport(request *GetTranslateReportRequest) (response *GetTranslateReportResponse, err error) + func (client *Client) GetTranslateReportWithCallback(request *GetTranslateReportRequest, ...) <-chan int + func (client *Client) GetTranslateReportWithChan(request *GetTranslateReportRequest) (<-chan *GetTranslateReportResponse, <-chan error) + func (client *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error) + func (client *Client) GetUserWithCallback(request *GetUserRequest, callback func(response *GetUserResponse, err error)) <-chan int + func (client *Client) GetUserWithChan(request *GetUserRequest) (<-chan *GetUserResponse, <-chan error) + func (client *Client) OpenAlimtService(request *OpenAlimtServiceRequest) (response *OpenAlimtServiceResponse, err error) + func (client *Client) OpenAlimtServiceWithCallback(request *OpenAlimtServiceRequest, ...) <-chan int + func (client *Client) OpenAlimtServiceWithChan(request *OpenAlimtServiceRequest) (<-chan *OpenAlimtServiceResponse, <-chan error) + func (client *Client) Translate(request *TranslateRequest) (response *TranslateResponse, err error) + func (client *Client) TranslateCertificate(request *TranslateCertificateRequest) (response *TranslateCertificateResponse, err error) + func (client *Client) TranslateCertificateWithCallback(request *TranslateCertificateRequest, ...) <-chan int + func (client *Client) TranslateCertificateWithChan(request *TranslateCertificateRequest) (<-chan *TranslateCertificateResponse, <-chan error) + func (client *Client) TranslateECommerce(request *TranslateECommerceRequest) (response *TranslateECommerceResponse, err error) + func (client *Client) TranslateECommerceWithCallback(request *TranslateECommerceRequest, ...) <-chan int + func (client *Client) TranslateECommerceWithChan(request *TranslateECommerceRequest) (<-chan *TranslateECommerceResponse, <-chan error) + func (client *Client) TranslateGeneral(request *TranslateGeneralRequest) (response *TranslateGeneralResponse, err error) + func (client *Client) TranslateGeneralWithCallback(request *TranslateGeneralRequest, ...) <-chan int + func (client *Client) TranslateGeneralWithChan(request *TranslateGeneralRequest) (<-chan *TranslateGeneralResponse, <-chan error) + func (client *Client) TranslateImage(request *TranslateImageRequest) (response *TranslateImageResponse, err error) + func (client *Client) TranslateImageWithCallback(request *TranslateImageRequest, ...) <-chan int + func (client *Client) TranslateImageWithChan(request *TranslateImageRequest) (<-chan *TranslateImageResponse, <-chan error) + func (client *Client) TranslateWithCallback(request *TranslateRequest, ...) <-chan int + func (client *Client) TranslateWithChan(request *TranslateRequest) (<-chan *TranslateResponse, <-chan error) + type CreateDocTranslateTaskRequest struct + CallbackUrl string + ClientToken string + FileUrl string + Scene string + SourceLanguage string + TargetLanguage string + func CreateCreateDocTranslateTaskRequest() (request *CreateDocTranslateTaskRequest) + type CreateDocTranslateTaskResponse struct + RequestId string + Status string + TaskId string + func CreateCreateDocTranslateTaskResponse() (response *CreateDocTranslateTaskResponse) + type CreateImageTranslateTaskRequest struct + ClientToken string + Extra string + SourceLanguage string + TargetLanguage string + UrlList string + func CreateCreateImageTranslateTaskRequest() (request *CreateImageTranslateTaskRequest) + type CreateImageTranslateTaskResponse struct + Code int + Data Data + Message string + RequestId string + func CreateCreateImageTranslateTaskResponse() (response *CreateImageTranslateTaskResponse) + type Data struct + AllUppercaseWords string + ContainCoreClasses string + DisableWords string + DuplicateWords string + FinalImageUrl string + ImageData string + InPaintingUrl string + Language string + LanguageQualityScore string + NoFirstUppercaseList string + Orc string + OverLengthLimit string + PictureEditor string + TaskId string + TemplateJson string + Titles string + TotalScore string + Translated string + TranslatedValues []CertificateTranslateItemDTO + Url string + WordCount string + WordSpelledCorrectError string + type GetBatchTranslateRequest struct + ApiType string + FormatType string + Scene string + SourceLanguage string + SourceText string + TargetLanguage string + func CreateGetBatchTranslateRequest() (request *GetBatchTranslateRequest) + type GetBatchTranslateResponse struct + Code int + Message string + RequestId string + TranslatedList []map[string]interface{} + func CreateGetBatchTranslateResponse() (response *GetBatchTranslateResponse) + type GetDetectLanguageRequest struct + SourceText string + func CreateGetDetectLanguageRequest() (request *GetDetectLanguageRequest) + type GetDetectLanguageResponse struct + DetectedLanguage string + RequestId string + func CreateGetDetectLanguageResponse() (response *GetDetectLanguageResponse) + type GetDocTranslateTaskRequest struct + TaskId string + func CreateGetDocTranslateTaskRequest() (request *GetDocTranslateTaskRequest) + type GetDocTranslateTaskResponse struct + PageCount int + RequestId string + Status string + TaskId string + TranslateErrorCode string + TranslateErrorMessage string + TranslateFileUrl string + func CreateGetDocTranslateTaskResponse() (response *GetDocTranslateTaskResponse) + type GetImageDiagnoseRequest struct + Extra string + Url string + func CreateGetImageDiagnoseRequest() (request *GetImageDiagnoseRequest) + type GetImageDiagnoseResponse struct + Code int + Data Data + Message string + RequestId string + func CreateGetImageDiagnoseResponse() (response *GetImageDiagnoseResponse) + type GetImageTranslateRequest struct + Extra string + SourceLanguage string + TargetLanguage string + Url string + func CreateGetImageTranslateRequest() (request *GetImageTranslateRequest) + type GetImageTranslateResponse struct + Code int + Data Data + Message string + RequestId string + func CreateGetImageTranslateResponse() (response *GetImageTranslateResponse) + type GetImageTranslateTaskRequest struct + TaskId string + func CreateGetImageTranslateTaskRequest() (request *GetImageTranslateTaskRequest) + type GetImageTranslateTaskResponse struct + Code int + Data Data + Message string + RequestId string + func CreateGetImageTranslateTaskResponse() (response *GetImageTranslateTaskResponse) + type GetTitleDiagnoseRequest struct + CategoryId string + Extra string + Language string + Platform string + Title string + func CreateGetTitleDiagnoseRequest() (request *GetTitleDiagnoseRequest) + type GetTitleDiagnoseResponse struct + Code int + Data Data + Message string + RequestId string + func CreateGetTitleDiagnoseResponse() (response *GetTitleDiagnoseResponse) + type GetTitleGenerateRequest struct + Attributes string + CategoryId string + Extra string + HotWords string + Language string + Platform string + Title string + func CreateGetTitleGenerateRequest() (request *GetTitleGenerateRequest) + type GetTitleGenerateResponse struct + Code int + Data Data + Message string + RequestId string + func CreateGetTitleGenerateResponse() (response *GetTitleGenerateResponse) + type GetTitleIntelligenceRequest struct + CatLevelThreeId requests.Integer + CatLevelTwoId requests.Integer + Extra string + Keywords string + Platform string + func CreateGetTitleIntelligenceRequest() (request *GetTitleIntelligenceRequest) + type GetTitleIntelligenceResponse struct + Code int + Data Data + Message string + RequestId string + func CreateGetTitleIntelligenceResponse() (response *GetTitleIntelligenceResponse) + type GetTranslateReportRequest struct + ApiName string + BeginTime string + EndTime string + Group string + func CreateGetTranslateReportRequest() (request *GetTranslateReportRequest) + type GetTranslateReportResponse struct + Code int + Data string + Message string + RequestId string + func CreateGetTranslateReportResponse() (response *GetTranslateReportResponse) + type GetUserRequest struct + func CreateGetUserRequest() (request *GetUserRequest) + type GetUserResponse struct + Code int + Data string + Message string + RequestId string + func CreateGetUserResponse() (response *GetUserResponse) + type OpenAlimtServiceRequest struct + OwnerId requests.Integer + Type string + func CreateOpenAlimtServiceRequest() (request *OpenAlimtServiceRequest) + type OpenAlimtServiceResponse struct + OrderId string + RequestId string + func CreateOpenAlimtServiceResponse() (response *OpenAlimtServiceResponse) + type TranslateCertificateRequest struct + CertificateType string + Ext string + ImageUrl string + ResultType string + SourceLanguage string + TargetLanguage string + func CreateTranslateCertificateRequest() (request *TranslateCertificateRequest) + type TranslateCertificateResponse struct + Data Data + RequestId string + func CreateTranslateCertificateResponse() (response *TranslateCertificateResponse) + type TranslateECommerceRequest struct + FormatType string + Scene string + SourceLanguage string + SourceText string + TargetLanguage string + func CreateTranslateECommerceRequest() (request *TranslateECommerceRequest) + type TranslateECommerceResponse struct + Code int + Data Data + Message string + RequestId string + func CreateTranslateECommerceResponse() (response *TranslateECommerceResponse) + type TranslateGeneralRequest struct + FormatType string + Scene string + SourceLanguage string + SourceText string + TargetLanguage string + func CreateTranslateGeneralRequest() (request *TranslateGeneralRequest) + type TranslateGeneralResponse struct + Code int + Data Data + Message string + RequestId string + func CreateTranslateGeneralResponse() (response *TranslateGeneralResponse) + type TranslateImageRequest struct + Ext string + Field string + ImageBase64 string + ImageUrl string + SourceLanguage string + TargetLanguage string + func CreateTranslateImageRequest() (request *TranslateImageRequest) + type TranslateImageResponse struct + Code int + Data Data + Message string + RequestId string + func CreateTranslateImageResponse() (response *TranslateImageResponse) + type TranslateRequest struct + FormatType string + Scene string + SourceLanguage string + SourceText string + TargetLanguage string + func CreateTranslateRequest() (request *TranslateRequest) + type TranslateResponse struct + Code int + Data Data + Message string + RequestId string + func CreateTranslateResponse() (response *TranslateResponse) + type TranslatedList struct + Translated []map[string]interface{} + type TranslatedValues struct + CertificateTranslateItemDTO []CertificateTranslateItemDTO