facade

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRANSLATE_PROCESSOR_GOOGLE = "google"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TranslateProcessor

type TranslateProcessor interface {
	Execute(text string) (string, error)
}

func NewGoogleTranslateProcessor

func NewGoogleTranslateProcessor(factory *TranslateProcessorFactoryImpl) (TranslateProcessor, error)

type TranslateProcessorFactory

type TranslateProcessorFactory interface {
	SourceLanguage(sourceLanguage string) TranslateProcessorFactory
	TargetLanguage(targetLanguage string) TranslateProcessorFactory
	New() (TranslateProcessor, error)
}

func NewTranslateProcessorFactory

func NewTranslateProcessorFactory() TranslateProcessorFactory

type TranslateProcessorFactoryImpl

type TranslateProcessorFactoryImpl struct {
	// contains filtered or unexported fields
}

func (*TranslateProcessorFactoryImpl) New

func (*TranslateProcessorFactoryImpl) SourceLanguage

func (tpf *TranslateProcessorFactoryImpl) SourceLanguage(sourceLanguage string) TranslateProcessorFactory

func (*TranslateProcessorFactoryImpl) TargetLanguage

func (tpf *TranslateProcessorFactoryImpl) TargetLanguage(targetLanguage string) TranslateProcessorFactory

type TranslateProcessorType

type TranslateProcessorType string

Jump to

Keyboard shortcuts

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