app

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package app wires every component together. Both the binary and the test suite build an App from a Config, so nothing is only ever exercised in production.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Cfg       *config.Config
	DB        *store.DB
	Bus       *bus.Bus
	Notifier  *sinks.Notifier
	Broker    *broker.Broker
	Reg       *executor.Registry
	Sched     *scheduler.Scheduler
	Sessions  *sessions.Manager
	Memory    memory.Provider
	Terminals *terminal.Manager
	Triggers  *triggers.Manager
	Server    *api.Server
	Log       *slog.Logger
}

App owns every long-lived component.

func New

func New(cfg *config.Config, log *slog.Logger) (*App, error)

New builds the whole service and starts its scheduler.

func (*App) Close

func (a *App) Close()

Close stops the scheduler and releases the database.

func (*App) Handler

func (a *App) Handler() http.Handler

Handler is the HTTP handler for this app.

func (*App) SeedDemoData

func (a *App) SeedDemoData() error

SeedDemoData gives mock mode a ready board, so the UI and the e2e suite always have something to show.

func (*App) StartRelay added in v2.4.0

func (a *App) StartRelay()

StartRelay connects to the end-to-end encrypted relay when one is configured. It returns at once; the connection retries in the background until Close.

Jump to

Keyboard shortcuts

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