Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStatus ¶
type Client ¶
func (*Client) GetAccountStatus ¶
func (c *Client) GetAccountStatus(ctx context.Context) (*AccountStatus, error)
func (*Client) ListSupportedLanguages ¶
func (c *Client) ListSupportedLanguages(ctx context.Context) (*[]SupportedLanguage, error)
func (*Client) TranslateSentence ¶
func (c *Client) TranslateSentence(ctx context.Context, request TranslationRequest) (*TranslateResponse, error)
type ErrorResponse ¶
type ErrorResponse struct {
ErrMessage string `json:"message"`
}
type SupportedLanguage ¶
type TranslateResponse ¶
type TranslateResponse struct {
Translations []translation `json:"translations"`
}
Click to show internal directories.
Click to hide internal directories.