Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestResponse ¶
type RequestResponse struct {
Data TranslateTextResponseList `json:"data"`
}
type RequestUsage ¶
type TranslateTextResponseList ¶
type TranslateTextResponseList struct {
Translations []TranslateTextResponseTranslation `json:"translations"`
}
type TranslationService ¶
func (TranslationService) Name ¶
func (d TranslationService) Name() string
func (TranslationService) Translate ¶
func (d TranslationService) Translate(text string, source string, target string) (backend.TranslationResponse, error)
func (TranslationService) Usage ¶
func (d TranslationService) Usage() (backend.UsageResponse, error)
Click to show internal directories.
Click to hide internal directories.