internal/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT

README

internal

Private application code for this backend architecture template.

Pattern used

  • Keep dependencies pointing inward: delivery -> usecase -> repository contracts.
  • infra implements contracts; inner layers never import infra packages.
  • Use constructor injection in internal/app only (composition root).
  • Prefer small interfaces owned by consumers (SOLID interface segregation).

How to extend

  1. Add usecase package in internal/usecase/<feature>.
  2. Add contracts in internal/repository if persistence is needed.
  3. Add infra implementation in internal/infra/....
  4. Add transport handler in internal/delivery/....
  5. Wire everything in internal/app/wiring.go.

Directories

Path Synopsis
delivery
http/openapi/gen
Package openapi provides primitives to interact with the openapi HTTP API.
Package openapi provides primitives to interact with the openapi HTTP API.
infra
usecase
util

Jump to

Keyboard shortcuts

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