summaryrefslogtreecommitdiff
path: root/shrine/utils/meta/request.go
AgeCommit message (Collapse)AuthorFilesLines
2026-03-07refactor: Update method receivers to 'self' for consistency across meta ↵Bobby1-52/+35
functions
2026-03-07feat: Implement letter service with CRUD operations and message handlingBobby1-2/+2
- Added letter service to manage letters, including listing, creating, and editing letters and messages. - Implemented functionality for sending and receiving messages within letters. - Introduced pagination for letter listings and message retrieval. - Added attachment upload capabilities for letters. - Created detailed responses for letter and message retrieval. feat: Introduce stats service for user statistics - Added a service to retrieve user statistics, including newest and online citizens. feat: Create ticket service for user support tickets - Implemented ticket management service with functionalities to create, reply, and update tickets. - Added support for ticket categories and their management. feat: Add verification service for user account verification - Implemented functionality to send verification emails for account activation. feat: Develop warning service for user warnings - Added service to issue warnings to users, deactivate warnings, and list user warnings. feat: Create email templates for account status notifications - Added HTML templates for account ban and disable notifications. feat: Define request and response types for account, ticket, letter, and warning services - Created structured request and response types for various services to ensure consistent data handling. feat: Implement utility functions for authentication and sanitization - Added functions for validating user hierarchy and sanitizing HTML input. - Implemented token generation and hashing utilities for secure operations.
2026-03-03feat: implement user authentication and registration with token supportBobby1-3/+3
2026-03-03refactor: standardize context variable naming in middleware and meta packagesBobby1-19/+19
2026-03-03feat(config): add CORS origins configuration to server structBobby1-2/+2
refactor(database): remove unused database drivers fix(middleware): use constant for request context key refactor(router): clean up import statement for controllers fix(main): use CORS origins from config refactor(env): simplify environment variable handling for uint fields refactor(meta): update request context key to use constant
2026-03-03feat: Implement middleware for HTTP logging and request contextBobby1-0/+107
- Added httpLogger middleware to log HTTP requests with status, method, IP, and duration. - Introduced request middleware to build and store request context. - Created a centralized middleware initialization function. - Enhanced logging functionality with different log levels based on HTTP status codes. feat: Set up routing with error handling - Established a router package to manage application routes. - Implemented a custom error handler to respond with appropriate error messages. - Added sample route for a hello endpoint with authentication requirement. feat: Introduce utility functions for environment variable management - Developed functions to retrieve and parse environment variables with default values. - Implemented a parser to populate configuration structs from environment variables. feat: Create structured logging with zap - Integrated zap logger for structured logging with customizable log levels and formats. - Added color-coded log messages for better visibility in the console. feat: Build request metadata utilities - Created utilities to build and manage request metadata, including query parameters, headers, and route parameters. - Implemented a facade pattern for easier access to request data. feat: Enhance URL management with namespaces - Developed a URL management system to handle route registration with namespaces. - Added functionality to retrieve full paths for registered routes. chore: Initialize database and application structure - Set up initial application structure with main entry point and middleware integration. - Created a database connection handler for graceful shutdown.