app

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0, MIT Imports: 16 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 the edge together. main and the integration tests build the same graph through Wire.

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
	Store    store.Store
	Server   *httpapi.Server
	Sessions *sessions.Manager
	Tail     *events.Tail
	Webhooks *webhooks.Worker
	Pub      *events.Publisher
	Media    *media.Service
	Ingest   *ingest.Processor
}

App is every long-lived part of one edge process.

func Wire

func Wire(cfg *config.Config, st store.Store, cc *core.Client, log *slog.Logger) *App

Wire builds the graph without starting anything.

func (*App) Handler

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

Handler is everything the edge serves over HTTP: the WAHA API and, unless disabled, the panel at /dashboard, which works through that same API.

func (*App) Start

func (a *App) Start(ctx context.Context) <-chan struct{}

Start runs the background loops until ctx ends. The returned channel is closed once every loop has stopped and the session leases are released, so the store can be closed after it.

Jump to

Keyboard shortcuts

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