Skip to main content

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

NameTypeDescription
dataStore*storage.DataStoreThe data store instance used by the TranslatorService to persist and retrieve data.
runClientworkflowconnect.RunServiceClientThe client used by the TranslatorService to interact with the workflow execution system.

Returns

TypeDescription
*TranslatorServiceA new instance of TranslatorService, ready to perform translation-related tasks.