internal/

directory
v0.0.0-...-3b7b480 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT

Directories

Path Synopsis
Package app initializes the application components such as database and cache clients.
Package app initializes the application components such as database and cache clients.
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.
user
Package user defines the User entity and related types.
Package user defines the User entity and related types.
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.
postgres
Package postgres provides a Postgres client for database operations.
Package postgres provides a Postgres client for database operations.
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.
redis
Package redis provides a Redis client for caching and other operations.
Package redis provides a Redis client for caching and other operations.
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.
repository
Package repository is cache decorator, it implements read-through caching
Package repository is cache decorator, it implements read-through caching
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
http/dto
Package dto defines the Data Transfer Objects for the User entity.
Package dto defines the Data Transfer Objects for the User entity.
http/handlers
Package handlers contains HTTP handlers for restaurant-related endpoints.
Package handlers contains HTTP handlers for restaurant-related endpoints.
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.
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.
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.

Jump to

Keyboard shortcuts

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