Documentation
¶
Overview ¶
Package upstream provides implementations for upstream translation services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Azure ¶
type Azure struct {
// ServiceKey is the key from the Azure dashboard
ServiceKey string
}
Azure represents a translation service calling the Azure Cognitive Services Machine Translation Service.
type CircuitBreaker ¶
CircuitBreaker implements a wrapper for upstream handlers that uses a CircuitBreaker to short-circuit requests given a user-specified circuit breaker
type Google ¶
type Google struct {
// Personal Access Token, as granted by Google.
Key string
// contains filtered or unexported fields
}
Google is a upstream.Service implementation that uses Google Cloud Translation.
Click to show internal directories.
Click to hide internal directories.