Documentation
¶
Overview ¶
Package application provides the application layer components and their dependency injection setup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Module represents the application module
Functions ¶
func NewHandlerDeps ¶ added in v0.1.5
func NewHandlerDeps(deps Dependencies) (*web.HandlerDeps, error)
NewHandlerDeps creates handler dependencies
Types ¶
type Application ¶ added in v0.1.5
type Application struct {
// contains filtered or unexported fields
}
Application represents the main application
func New ¶ added in v0.1.5
func New(lc fx.Lifecycle, deps Dependencies) *Application
New creates a new application instance
type Dependencies ¶ added in v0.1.5
type Dependencies struct {
fx.In
// Domain services
UserService user.Service
FormService form.Service
// Infrastructure
Logger logging.Logger
Config *config.Config
Server *server.Server
DomainModule fx.Option
Presentation fx.Option
MiddlewareModule fx.Option
SessionManager *session.Manager
Renderer view.Renderer
MiddlewareManager *middleware.Manager
AccessManager *access.AccessManager
}
Dependencies holds all application dependencies
func (*Dependencies) Validate ¶ added in v0.1.5
func (d *Dependencies) Validate() error
Validate checks if all required dependencies are present
Directories
¶
| Path | Synopsis |
|---|---|
|
handlers
|
|
|
Package middleware provides HTTP middleware components.
|
Package middleware provides HTTP middleware components. |
Click to show internal directories.
Click to hide internal directories.