app

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package app provides application initialization and wiring.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config            *config.Config
	Logger            *slog.Logger
	Storage           output.ObjectStorage
	Repository        *geopackage.Repository
	RasterRepository  *raster.Repository
	Transformer       *geopackage.RepositoryTransformer
	Registry          *application.SourceRegistry
	QueryService      *application.QueryService
	HealthService     *application.HealthService
	SyncService       *application.SyncService
	HTTPServer        *httpAdapter.Server
	TLSServer         *tlsAdapter.Server
	Watcher           *watcher.Watcher
	Metrics           *metrics.Collector
	MetricsServer     *metrics.Server
	TelemetryProvider *telemetry.Provider // nil when tracing is disabled
	Tracer            output.Tracer       // never nil; NoOp when tracing is disabled
	MCPServer         *mcp.Server         // nil when MCP is disabled
	Gazetteer         *gazetteer.Service  // nil when the gazetteer feature is disabled
	// contains filtered or unexported fields
}

App holds all application components.

func New

func New(ctx context.Context, cfg *config.Config, logger *slog.Logger) (app *App, retErr error)

New creates and initializes a new application.

func (*App) MCPDeps

func (a *App) MCPDeps() mcp.Deps

MCPDeps bundles the dependencies the MCP adapter needs. Exported so the stdio-mode subcommand (cmd/ortus) builds the exact same Deps struct via this one definition instead of duplicating the field-by-field wiring.

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down all components.

func (*App) Start

func (a *App) Start(ctx context.Context) error

Start starts all application components.

Jump to

Keyboard shortcuts

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