app

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package app contains application-owned composition extension points.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(_ *http.ServeMux, _ Dependencies)

RegisterRoutes is the application-owned route composition point.

Derived repositories may add registrations for business modules here. Keep template-provided operational routes in cmd/api and internal/modules/health. The template updater preserves this file so application routes remain owned by the generated repository.

Types

type Dependencies

type Dependencies struct {
	Database   *pgxpool.Pool
	ErrorStore errstore.Store
	Logger     *slog.Logger
	Auth       *auth.Service // nil when DATABASE_ENABLED=false.
}

Dependencies contains shared runtime dependencies for application modules. Database is nil when DATABASE_ENABLED=false.

Jump to

Keyboard shortcuts

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