app

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProviderRegistry added in v0.11.0

func BuildProviderRegistry(env func(string) (string, bool), httpClient *http.Client) (*translate.ProviderRegistry, error)

BuildProviderRegistry builds the startup provider registry from secure local configuration.

Types

type App

type App struct {
	Options       Options
	Logger        *slog.Logger
	ProjectRoot   string
	Guard         *fsutil.Guard
	Config        *config.Service
	Project       *project.Service
	Locales       *locale.Service
	State         *state.Service
	Validator     *validate.Service
	Diff          *diff.Service
	Translation   *translate.Service
	Providers     *translate.ProviderRegistry
	Sampling      *translate.SamplingService
	Scanner       *scanner.Service
	DeadKeys      *deadkey.Service
	Reports       *report.Service
	KeyOps        *keyops.Service
	Subscriptions *mcpadapter.SubscriptionRegistry
}

App wires together the application services used by the CLI and MCP server.

func New

func New(ctx context.Context, opts Options) (*App, error)

New constructs an App with all services initialized from opts.

type Options

type Options struct {
	ProjectRoot string
	ConfigPath  string
	LogLevel    string
	HTTPBaseURL string
}

Options configures application initialization.

Jump to

Keyboard shortcuts

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