Documentation
¶
There is no documentation for this package.
Directories
¶
Path | Synopsis |
---|---|
api
|
|
error
Package errapi provides a structured way to handle and represent API errors, including common HTTP status codes and corresponding error messages.
|
Package errapi provides a structured way to handle and represent API errors, including common HTTP status codes and corresponding error messages. |
middleware
Package middleware provides HTTP middleware for authorization and context handling.
|
Package middleware provides HTTP middleware for authorization and context handling. |
rest
Package api defines an interface for controllers to register routes with different access levels.
|
Package api defines an interface for controllers to register routes with different access levels. |
rest/base_handler
Package baseapi provides a base handler for HTTP requests, including functionalities for request validation, error handling, and response management.
|
Package baseapi provides a base handler for HTTP requests, including functionalities for request validation, error handling, and response management. |
rest/expense
Package expense provides HTTP handlers for managing user expenses, including adding, retrieving, and updating expense records.
|
Package expense provides HTTP handlers for managing user expenses, including adding, retrieving, and updating expense records. |
rest/user
Package user provides HTTP handlers for user-related actions such as registration and login.
|
Package user provides HTTP handlers for user-related actions such as registration and login. |
router
Package router provides functionality to set up and run the HTTP server, manage routes, and apply middleware based on access levels.
|
Package router provides functionality to set up and run the HTTP server, manage routes, and apply middleware based on access levels. |
application
|
|
authentication/command
Package registercmd provides the command handler for user registration.
|
Package registercmd provides the command handler for user registration. |
authentication/query
Package loginqry provides functionality for handling login queries.
|
Package loginqry provides functionality for handling login queries. |
common/cqrs/command
Package command provides a generic interface for handling commands.
|
Package command provides a generic interface for handling commands. |
common/cqrs/query
Package query provides a generic interface for handling queries.
|
Package query provides a generic interface for handling queries. |
common/interface/jwt
Package jwt provides an interface for handling JSON Web Tokens (JWT).
|
Package jwt provides an interface for handling JSON Web Tokens (JWT). |
common/interface/repository
Package irepository provides interfaces for accessing and managing expense data.
|
Package irepository provides interfaces for accessing and managing expense data. |
common/interface/time_service
Package timeservice provides an interface for time-related operations.
|
Package timeservice provides an interface for time-related operations. |
error
Package error provides a way to define and handle application-specific errors.
|
Package error provides a way to define and handle application-specific errors. |
expense/command
Package expensecmd provides functionality for handling commands related to expenses.
|
Package expensecmd provides functionality for handling commands related to expenses. |
expense/query
Package expensqry provides functionality for handling queries related to retrieving expenses.
|
Package expensqry provides functionality for handling queries related to retrieving expenses. |
Package config provides functionality to load and manage application configuration from environment variables.
|
Package config provides functionality to load and manage application configuration from environment variables. |
domain
|
|
common/hash
Package hash defines an interface for hashing and matching strings.
|
Package hash defines an interface for hashing and matching strings. |
error/common
Package errdmn provides custom error types for the domain layer.
|
Package errdmn provides custom error types for the domain layer. |
error/expense
Package errexpense defines expense-related errors for the application.
|
Package errexpense defines expense-related errors for the application. |
error/user
Package erruser defines user-related errors for the application.
|
Package erruser defines user-related errors for the application. |
model/expense
Package expensemodel includes the definition of the Expense aggregate, which represents an individual expense, and provides functions for creating and interacting with expenses.
|
Package expensemodel includes the definition of the Expense aggregate, which represents an individual expense, and provides functions for creating and interacting with expenses. |
model/user
Package usermodel defines the `User` aggregate, which represents an individual user, and includes methods for creating and managing users.
|
Package usermodel defines the `User` aggregate, which represents an individual user, and includes methods for creating and managing users. |
infrastructure
|
|
hash
Package hash provides secure hashing and matching functionalities using PBKDF2 with SHA-256.
|
Package hash provides secure hashing and matching functionalities using PBKDF2 with SHA-256. |
jwt
Package jwt provides JWT generation and validation services.
|
Package jwt provides JWT generation and validation services. |
repository/expense
Package expenserepo provides the implementation of the IExpenseRepository interface for managing expenses in a PostgreSQL database.
|
Package expenserepo provides the implementation of the IExpenseRepository interface for managing expenses in a PostgreSQL database. |
repository/user
Package userrepo provides the implementation for handling user persistence operations in the repository.
|
Package userrepo provides the implementation for handling user persistence operations in the repository. |
Click to show internal directories.
Click to hide internal directories.