app

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 21 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 added in v1.1.0

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
}

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