runtime

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 11 Imported by: 0

README

internal/app/runtime

Pattern used

  • Owns dependencies shared by every deployable process: configuration, logging, database pool, and observability.
  • Provides one shutdown boundary for those shared resources.

How to extend

  • Add only process-neutral dependencies here.
  • Keep API handlers, workers, and feature wiring in their process composition package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface{ Shutdown(context.Context) error }

type Runtime

type Runtime struct {
	Config        config.Config
	Logger        logger.Logger
	DBPool        *pgxpool.Pool
	Observability observability.Runtime
}

func New

func New(ctx context.Context) (*Runtime, error)

func (*Runtime) Shutdown

func (r *Runtime) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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