App contains all of the application dependencies for the project.
| 16 | |
| 17 | // App contains all of the application dependencies for the project. |
| 18 | type App struct { |
| 19 | config Config |
| 20 | logger *slog.Logger |
| 21 | files fs.FS |
| 22 | quotes *quote.Service |
| 23 | db *pgxpool.Pool |
| 24 | } |
| 25 | |
| 26 | // New creates a new instance of the application. |
| 27 | func New(logger *slog.Logger, config Config, files fs.FS) *App { |
nothing calls this directly
no outgoing calls
no test coverage detected