service

package
v0.0.0-...-20002e4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translate

type Translate interface {
	// DetectLanguage 识别指定文本语言
	DetectLanguage(ctx context.Context, req *translate.DetectLanguageReq) (*translate.DetectLanguageResp, error)
	// Translate 翻译文本到指定语言
	Translate(ctx context.Context, req *translate.TranslateReq) (*translate.TranslateResp, error)
}

func GetTranslateImpl

func GetTranslateImpl(translateType translate.TranslatePlatformType) (Translate, error)

GetTranslateImpl 获取 对应的 翻译 的实现.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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