maestro

package
v0.0.0-...-14c1498 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCharsPersSecondTimeout = 30 // extreme lower bound of throughput for our MT engines
	MinimumRequestTimeout         = 20 * time.Second
)

Variables

This section is empty.

Functions

func New

func New(
	logger log.Logger,
	basicAuthUser,
	basicAuthPass string,
	charsPerSecondTimeout float64,
) *maestroClient

New returns a maestroClient with request timeouts, cancellation and retry logic

Types

type Maestro

type Maestro interface {
	MTTask(ctx context.Context,
		serviceURL string,
		req *maestro.MTTaskRequest) (*maestro.MTTaskResponse, error)
}

Maestro is the interface for machine translation services in arch2

Jump to

Keyboard shortcuts

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