app

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 22 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

BuildProviderRegistry builds the startup provider registry from secure local configuration.

Types

type App

type App struct {
	Options            Options
	Logger             *slog.Logger
	ProjectRoot        string
	RequestStateSigner *security.RequestStateSigner
	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
	Scanner            *scanner.Service
	DeadKeys           *deadkey.Service
	Reports            *report.Service
	KeyOps             *keyops.Service
}

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
	RequestStateSecret string
}

Options configures application initialization.

Jump to

Keyboard shortcuts

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