internal/

directory
v0.3.0 Latest Latest
Warning

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

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

README

internal

Pattern used

  • Dependencies point inward: delivery -> usecase -> repository contracts.
  • infra implements contracts; inner layers never import infra.
  • Constructor injection wired in internal/app (composition root).
  • Small, consumer-owned interfaces (ISP).

How to extend

  1. Usecase in internal/usecase/<feature>/.
  2. Contracts in internal/repository/<area>/.
  3. Infra implementation in internal/infra/....
  4. Transport handler in internal/delivery/....
  5. Wire in internal/app/wiring.go.

Directories

Path Synopsis
delivery
http/binding
Package binding provides Echo binding helpers.
Package binding provides Echo binding helpers.
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
repository
db
usecase
util

Jump to

Keyboard shortcuts

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