api

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: 44 Imported by: 0

README

internal/app/api

Pattern used

  • Composes the HTTP API process from the shared runtime dependencies.
  • Builds in stages: infra -> repositories -> usecases -> handlers -> server.
  • Returns startup errors early and cleans up already-initialized resources.

How to extend

  • Add HTTP-specific constructor wiring in the matching api_*_wiring.go file.
  • Keep process-neutral setup in internal/app/runtime and business logic outside this package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*appruntime.Runtime
	RedisClient *goredis.Client
	Server      *httpDelivery.Server
}

func New

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

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context) error

func (*App) Start

func (a *App) Start() error

Jump to

Keyboard shortcuts

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