mock

package module
v0.0.0-...-4d85153 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateTextWithInterfaceClient

func TranslateTextWithInterfaceClient(client TranslationClient, text string, targetLang string) (string, error)

TranslateTextWithInterfaceClient translates text to the targetLand using the provided client.

Types

type TranslationClient

type TranslationClient interface {
	TranslateText(ctx context.Context, req *translatepb.TranslateTextRequest, opts ...gax.CallOption) (*translatepb.TranslateTextResponse, error)
}

TranslationClient is used to translate text.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL