e50cabac4b
- Updated all references from v6 to v7 for `github.com/router-for-me/CLIProxyAPI`. - Ensured consistency in imports within core libraries, tests, and integration tests. - Added missing tests for new features in Redis Protocol integration.
19 lines
588 B
Go
19 lines
588 B
Go
// Package builtin exposes the built-in translator registrations for SDK users.
|
|
package builtin
|
|
|
|
import (
|
|
sdktranslator "github.com/router-for-me/CLIProxyAPI/v7/sdk/translator"
|
|
|
|
_ "github.com/router-for-me/CLIProxyAPI/v7/internal/translator"
|
|
)
|
|
|
|
// Registry exposes the default registry populated with all built-in translators.
|
|
func Registry() *sdktranslator.Registry {
|
|
return sdktranslator.Default()
|
|
}
|
|
|
|
// Pipeline returns a pipeline that already contains the built-in translators.
|
|
func Pipeline() *sdktranslator.Pipeline {
|
|
return sdktranslator.NewPipeline(sdktranslator.Default())
|
|
}
|