Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg config.TranslationConfig) *Service
type TranslationError ¶
type TranslationError struct {
Kind TranslationErrorKind
StatusCode int
Message string
Cause error
}
func (*TranslationError) Error ¶
func (e *TranslationError) Error() string
func (*TranslationError) Unwrap ¶
func (e *TranslationError) Unwrap() error
type TranslationErrorKind ¶
type TranslationErrorKind string
const ( TranslationErrorParse TranslationErrorKind = "parse_error" TranslationErrorCountMismatch TranslationErrorKind = "count_mismatch" TranslationErrorHTTPStatus TranslationErrorKind = "http_status" TranslationErrorProvider TranslationErrorKind = "provider_error" )
Click to show internal directories.
Click to hide internal directories.