NewTranslatorService
No overview available.
def NewTranslatorService(
dataStore: *storage.DataStore,
runClient: workflowconnect.RunServiceClient
) - > *TranslatorService
Initializes and returns a new TranslatorService instance, configuring it with the necessary data storage and workflow execution client. This function is used to set up the core service responsible for translation operations.
Parameters
| Name | Type | Description |
|---|---|---|
| dataStore | *storage.DataStore | The data store instance used by the TranslatorService to persist and retrieve data. |
| runClient | workflowconnect.RunServiceClient | The client used by the TranslatorService to interact with the workflow execution system. |
Returns
| Type | Description |
|---|---|
*TranslatorService | A new instance of TranslatorService, ready to perform translation-related tasks. |