Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
api
command
Package main is the entry point for the orders API application.
|
Package main is the entry point for the orders API application. |
|
Package docs Code generated by swaggo/swag.
|
Package docs Code generated by swaggo/swag. |
|
internal
|
|
|
app
Package app initializes the application components such as database and cache clients.
|
Package app initializes the application components such as database and cache clients. |
|
config
Package config provides functionality to load application configuration
|
Package config provides functionality to load application configuration |
|
domain/restaurant
Package restaurant defines the Restaurant entity and related value objects.
|
Package restaurant defines the Restaurant entity and related value objects. |
|
domain/user
Package user defines the User entity and related types.
|
Package user defines the User entity and related types. |
|
domain/user_session
Package usersession defines the UserSessions entity for database interactions
|
Package usersession defines the UserSessions entity for database interactions |
|
infrastructure/logger
Package logger provides a flexible logging solution using zerolog and lumberjack for log rotation.
|
Package logger provides a flexible logging solution using zerolog and lumberjack for log rotation. |
|
infrastructure/postgres
Package postgres provides a Postgres client for database operations.
|
Package postgres provides a Postgres client for database operations. |
|
infrastructure/postgres/persistence
Package persistence implements the restaurant repository using GORM for PostgreSQL It implements the restaurant.Repository interface defined in the restaurant domain, providing methods for creating, retrieving, updating, and deleting restaurant records in a PostgreSQL database using GORM as the ORM.
|
Package persistence implements the restaurant repository using GORM for PostgreSQL It implements the restaurant.Repository interface defined in the restaurant domain, providing methods for creating, retrieving, updating, and deleting restaurant records in a PostgreSQL database using GORM as the ORM. |
|
infrastructure/redis
Package redis provides a Redis client for caching and other operations.
|
Package redis provides a Redis client for caching and other operations. |
|
infrastructure/redis/cache
Package cache implements the user repository using Redis as the underlying storage mechanism.
|
Package cache implements the user repository using Redis as the underlying storage mechanism. |
|
infrastructure/repository
Package repository is cache decorator, it implements read-through caching
|
Package repository is cache decorator, it implements read-through caching |
|
infrastructure/security
Package security provides password hashing and verification using bcrypt.
|
Package security provides password hashing and verification using bcrypt. |
|
interfaces/http
Package http defines the HTTP router interface and implementation
|
Package http defines the HTTP router interface and implementation |
|
interfaces/http/dto
Package dto defines the Data Transfer Objects for the User entity.
|
Package dto defines the Data Transfer Objects for the User entity. |
|
interfaces/http/handlers
Package handlers contains HTTP handlers for restaurant-related endpoints.
|
Package handlers contains HTTP handlers for restaurant-related endpoints. |
|
interfaces/http/middleware
Package middleware provides middleware functions for handling HTTP requests in the application.
|
Package middleware provides middleware functions for handling HTTP requests in the application. |
|
pkg/utils
Package utils provides functions to extract device and location information from HTTP requests.
|
Package utils provides functions to extract device and location information from HTTP requests. |
|
usecase/restaurant
Package restaurant contains the use case for creating a restaurant.
|
Package restaurant contains the use case for creating a restaurant. |
|
usecase/user
Package user contains the use case for creating a new user in the system.
|
Package user contains the use case for creating a new user in the system. |
|
usecase/user_session
Package usersession contains use cases related to user session management, such as creating, validating, and deleting sessions.
|
Package usersession contains use cases related to user session management, such as creating, validating, and deleting sessions. |
Click to show internal directories.
Click to hide internal directories.