Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v2.4.10 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

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
	DB       *database.Manager
	Migrator *migration.Migrator
	Stores   *bundle.Stores
	// contains filtered or unexported fields
}

App bundles the runtime dependencies needed by CLI and MCP entrypoints.

func Open

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

Open loads configuration, opens the database, applies migrations, and wires stores.

func (*App) Close

func (a *App) Close() error

Close releases resources held by the application.

func (*App) ReloadConfig

func (a *App) ReloadConfig() error

ReloadConfig re-reads the configuration from disk and reinitializes the embedding service. Useful after manual edits to cortex.yaml.

type Options

type Options struct {
	InMemory          bool
	ConfigPath        string
	DisableRemoteSync bool
}

Options controls how the application is opened.

Jump to

Keyboard shortcuts

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