19 Commits

Author SHA1 Message Date
981759be39 feat(api, services, handlers): add URL statistics endpoint and service initialization 2024-11-16 05:21:05 +08:00
236ef74f85 feat: refactor code structure and move utility functions to separate package 2024-10-27 05:04:33 +08:00
147bda8251 refactor(main): 取消算法, 改成完全随机simplify URLSelector and remove unnecessary fields 2024-10-27 04:40:53 +08:00
749cd088b7 refactor: update environment variable and csv file handling 2024-10-27 02:40:53 +08:00
ba25817111 feat: add support for CSV_BASE_URL environment variable and update file reading logic 2024-10-27 02:02:15 +08:00
0537e46ef6 refactor(main): remove unused cache duration and last fetch time 2024-10-26 16:01:20 +08:00
96f41e374f refactor(main, logging, utils): Refactor logging and IP extraction logic
Move setupLogging to logging package and create GetRealIP utility function
2024-10-26 15:46:00 +08:00
39155ac1bb feat(api, stats): add graceful shutdown and periodic stats saving 2024-10-26 15:29:21 +08:00
ff2163b207 feat: update random-api-go service and UI with stats display 2024-10-26 14:28:04 +08:00
fe18d6c828 feat(api, stats): add stats manager and endpoint call tracking 2024-10-26 12:39:00 +08:00
485594497c 增加来源域名日志及错误日志格式化输出 2024-10-14 12:19:03 +08:00
c4bb234c2c 添加互斥锁以保护URLSelector结构体的并发访问 2024-10-13 18:17:52 +08:00
f8737684ef 去重, 无重复选择(3次内), 洗牌算法 2024-10-13 11:57:07 +08:00
f3dae5dfa5 丰富日志 2024-09-12 17:21:37 +08:00
e10049f57c fix 2024-09-12 17:14:16 +08:00
7ee5c10ea3 修复 2024-09-12 17:06:18 +08:00
8287d9f726 feat: refactor main.go and readme.md to improve IP handling and logging 2024-09-12 17:00:32 +08:00
0aaed93abc feat: refactor Dockerfile and implement new CSV handling logic 2024-09-12 16:37:03 +08:00
7fd2ac2283 first commit 2024-09-12 15:48:31 +08:00