TrapStoner
9d125ba9bd
fix(redis): retry with exponential backoff on startup
...
rueidis.NewClient pings Redis immediately; if the container starts
before Redis is ready the backend fatals. Retry up to 10 times with
exponential backoff (300ms → 810ms → 2.2s → … capped at 15s).
2026-05-29 02:58:46 +03:00
keven1024
cf92a50c82
chore(mail): add .gitkeep file to pkg/mail/out directory for template management
2026-05-24 11:16:25 +08:00
keven1024
6084acb0d5
chore(deps): update package dependencies in pnpm-lock.yaml and package.json files for improved stability and performance
2026-05-24 11:16:25 +08:00
keven1024
a601964459
feat(asynq): implement Asynq initialization and client retrieval functions
2026-05-24 11:16:25 +08:00
keven1024
8758325da3
feat(redis): initialize Redis client and update context handling in Redis operations
2026-05-24 11:15:44 +08:00
keven1024
9a9418c564
feat(worker): integrate GeoIP functionality into email notifications and enhance email template with region information
2026-05-24 11:15:44 +08:00
keven1024
0cb30b6293
feat(models): enhance RedisShareInfo struct with NotifyWebhooks and Locale fields for improved notification handling
2026-05-24 11:15:43 +08:00
keven1024
8828924a1f
feat(geoip): implement GeoIP functionality with initialization, IP geolocation retrieval, and unit tests
2026-05-24 11:15:43 +08:00
keven1024
3275b8f68f
feat(i18n): update email notification translations across multiple languages for improved clarity and consistency
2026-05-24 11:15:43 +08:00
keven1024
2ff06946e1
feat(i18n): add translations for share type in multiple languages to enhance notification clarity
2026-05-24 11:15:43 +08:00
keven1024
bbf6ea561d
feat(i18n): add initial i18n package with support for multiple languages and email notification translations
2026-05-24 11:15:43 +08:00
keven1024
10a82a1751
chore(deps): update go.sum files to include module hashes for various dependencies and their go.mod files
2026-05-24 11:15:42 +08:00
keven1024
907f77aa66
refactor(backend): update file hash calculation from MD5 to SHA1 and rename related error handling
2026-05-24 11:15:42 +08:00
keven1024
3f5f8b3c97
feat(worker): implement multi-provider text translation service with Google, Microsoft, and custom LLM support
2026-05-24 11:15:42 +08:00
keven1024
1298bf79d3
refactor(backend): enhance DownloadShare functionality with context management and improve Redis share info handling
2026-05-24 11:15:42 +08:00
keven1024
83f6be0486
fix(models): handle JSON marshaling errors in SetRedis functions to improve error handling and data integrity
2026-05-24 11:15:42 +08:00
keven1024
55949d1f76
refactor(models): remove mergo dependency and update SetRedisFileInfo and SetRedisShareInfo to use handler functions for improved data handling
2026-05-24 11:15:42 +08:00
keven1024
7566ddb5f2
fix(pkg): simplify task scheduling by removing unnecessary duration conversion in SetFileRemoveTask
2026-05-24 11:15:41 +08:00
keven1024
c50bb5d0bf
refactor: update environment variable handling to use GetEnvMap for improved type safety and add feature extraction functionality
2026-04-04 21:42:25 +08:00
keven1024
95ab8b97da
refactor(pkg): ensure Redis client initialization is properly assigned during concurrent access
2026-04-04 21:21:27 +08:00
keven1024
d6880dbf00
refactor: improve context management in Redis stat updates by utilizing context in locking mechanism
2026-04-04 21:20:17 +08:00
keven1024
c871c55f79
refactor: enhance Redis lock utility by adding expiration duration support and improving context management
2026-04-04 16:18:19 +08:00
keven1024
82e9292b66
feat: add Redis lock utility for managing distributed locks with rueidislock
2026-04-04 16:02:38 +08:00
keven1024
1d86f2bdf6
refactor: update dependencies across multiple modules, including upgrading asynq to v0.26.0, Redis to v9.18.0, and various golang.org/x packages for improved performance and compatibility
2026-04-04 13:50:21 +08:00
keven1024
52cc89a73d
refactor: implement session management using Gorilla sessions and streamline session retrieval in middleware
2026-04-04 13:47:12 +08:00
keven1024
af9a5b45d2
refactor: update Redis operations to use rueidis client for improved performance across multiple models
2026-04-04 12:45:08 +08:00
keven1024
b26821a504
refactor: migrate Redis client implementation from go-redis to rueidis for improved performance and functionality
2026-04-04 12:16:28 +08:00
keven1024
560387d8f1
refactor: streamline Redis stat updates by using a handler function to modify stat data directly
2026-04-04 11:01:50 +08:00
keven1024
7772a935d7
fix: go work sync
2026-03-02 00:05:28 +08:00
keven1024
e5b5def6f0
refactor: migrate file utility functions to services package and update references in controllers; remove deprecated utils file
2026-02-27 12:18:18 +08:00
keven1024
ed7ac4e657
feat(utils): add file utility functions for MD5 hashing, file ID generation, and upload directory management
2026-02-27 12:08:13 +08:00
keven1024
b471972dd4
chore(deps): update dependencies
2026-01-30 14:44:43 +08:00
keven1024
e43d27958d
feat(utils): enhance InitEnv function to support multiple config types and add unit tests for environment initialization
2025-12-27 11:18:45 +08:00
keven1024
31c0736562
feat(backend): add password hashing error handling and implement HTTP utility tests
2025-12-27 11:04:21 +08:00
keven1024
675a6e860a
feat(pkg): add async queue and Redis client utilities, implement environment variable management with viper
2025-12-14 16:25:20 +08:00
keven1024
313ce4455f
chore: update Go modules to version 1.25.5, restructure models into pkg/models, and remove unused model files for improved organization and dependency management
2025-12-14 16:12:17 +08:00