app

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package app is satelle's local bootstrap (build order step 3). It loads the config, resolves the repo root, opens the per-repo .satelle/satelle.db, and wires the dynamic stores + authored-doc index onto it — the in-process path every CLI command (and, later, the local web server) reaches data through.

The OSS tier is always local, so there is no remote-dispatch branch: Open is the whole "backend". Zero-config works — a repo with no satelle.toml falls back to defaults against the current directory.

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
	RepoRoot string
	DBPath   string
	Store    *store.DB
}

App is the wired local runtime: resolved config + the open per-repo database.

func Open

func Open() (*App, error)

Open loads config (walking up for .satelle/satelle.toml), opens the database, and returns the wired App. A missing config is not an error — the zero-value Config runs on defaults against the current directory (zero-config). The caller owns Close.

func (*App) AuthoredDirs

func (a *App) AuthoredDirs() map[string]string

AuthoredDirs returns the kind→dir map the directory monitor watches/indexes.

func (*App) Close

func (a *App) Close() error

Close releases the database handle.

Jump to

Keyboard shortcuts

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