Commit Graph

47 Commits

Author SHA1 Message Date
6df8136e1b feat(core): 添加IP地址检测服务核心功能
- 实现配置文件加载和解析功能,支持服务器、MMDB数据库和日志配置
- 集成GeoLite2城市数据库查询,提供IP地理位置信息查询服务
- 添加私有IP地址检测逻辑,过滤本地网络地址段
- 构建HTTP路由处理器,返回JSON格式的IP位置信息
- 配置默认启动参数和错误处理机制
- 集成日志系统,记录请求处理过程和错误信息
2026-02-02 17:20:51 +08:00
c4c6aefb5a refactor(network): 移除私有IP检测模块并更新依赖
- 删除了 CheckBelongPrivate.go 文件中的私有IP检测功能
- 升级 Go 版本从 1.20 到 1.23.0 并添加 toolchain 配置
- 更新项目依赖,移除旧的配置管理库,添加 Gin 框架和日志库
- 精简依赖列表,移除大量 unused 的间接依赖包
- 重新生成 go.sum 文件以匹配新的依赖关系
2026-02-02 17:19:40 +08:00
cfc5445ed9 Update main.go 2024-08-28 17:49:12 +08:00
6efba7de05 Update .gitignore 2024-08-28 16:55:15 +08:00
12cf5e446e Merge branch 'master' of https://gitea.kimgo.cn/wsy182/check_ip 2024-04-20 17:43:32 +08:00
bde1152cde Update .gitignore 2024-04-20 16:11:04 +08:00
56646a87dc delete
delete idea dir
2024-04-20 16:09:51 +08:00
2667b35148 Update .gitignore 2024-04-20 16:08:46 +08:00
46a94d7c91 删除 .DS_Store 2024-04-20 16:08:25 +08:00
2eaac26f4a Update .gitignore 2024-04-20 16:08:18 +08:00
cf7dca6f70 删除 checkIP 2024-04-20 16:01:12 +08:00
31dbc2449a Update MmdbQuery.go 2024-04-20 15:53:44 +08:00
39e72a86d3 Update checkIP 2024-04-20 15:53:40 +08:00
92504a5ba8 Update .gitignore 2024-04-20 15:53:36 +08:00
0910cb8ec9 创建 checkIP 2023-08-03 00:21:50 +08:00
268e4b044d 更新 main.go 2023-08-03 00:21:48 +08:00
71bb4a4778 更新 .DS_Store 2023-07-30 00:11:59 +08:00
eea63cd649 Update .DS_Store 2023-06-20 18:29:23 +08:00
ae1d0d3d37 Update CheckBelongPrivate.go
添加127.0.0.1
2023-06-19 11:46:54 +08:00
6afa3a7eca Update main.go 2023-06-19 11:46:39 +08:00
10e584f5e6 删除 config.yml 2023-06-16 16:07:07 +08:00
82e2ba1928 更新 main.go 2023-06-16 16:07:05 +08:00
cb2fdf2ffd 创建 CheckBelongPrivate.go 2023-06-16 16:07:00 +08:00
d1f979a116 更新 Readconfig.go 2023-06-16 16:06:54 +08:00
1cb0d736d6 1 2023-06-13 15:16:49 +08:00
5eb8b85b18 删除之前的二进制文件 2023-06-05 19:30:56 +08:00
5706834757 添加日志
添加日志config
2023-06-05 17:38:43 +08:00
d16284026d Merge branch 'master' of https://gitee.com/wsiyuan1/check-ip 2023-06-05 17:21:14 +08:00
fbc9427d93 1
1
2023-06-05 17:20:33 +08:00
0736064f05 创建 .gitignore
忽略跟踪文件
2023-06-05 17:20:24 +08:00
ee30606ddd 优化连接方式
优化连接方式
2023-06-05 17:20:02 +08:00
bb36010ca0 更新 MysqlQuery.go
修改为配置文件连接
2023-06-05 17:19:39 +08:00
e374a8a3e1 创建 Readconfig.go
读取配置文件
2023-06-05 17:19:22 +08:00
47dde8e9ed 创建 config.conf
读取配置文件
2023-06-05 17:19:09 +08:00
5417d46dea 添加配置文件
添加读取路径下的配置文件
2023-06-05 17:18:52 +08:00
d10f0a77c4 删除文件 db/GeoLite2-City-Locations-en.csv 2023-06-05 09:17:54 +00:00
78c4d599c7 删除文件 db/GeoLite2-City-Locations-zh-CN.csv 2023-06-05 09:17:46 +00:00
230b05d8dd 删除文件 db/GeoLite2-City_20230602.tar.gz 2023-06-05 09:17:39 +00:00
d1980a489d 删除文件 db/geoip2-csv-converter-v1.3.0-windows-64.zip 2023-06-05 09:17:32 +00:00
fe40b7bb4e 删除文件 db/GeoLite2-City-Blocks-IPv6.csv 2023-06-05 09:17:27 +00:00
4bfffb84f2 删除文件 db/GeoLite2-City-Blocks-IPv4.csv 2023-06-05 09:17:19 +00:00
4d88843aaa 删除文件 db/GeoLite2-City-Blocks-IPv4-string.csv 2023-06-05 08:16:28 +00:00
92d0022c7c 删除文件 db/GeoLite2-City-Blocks-IPv4-hex.csv 2023-06-05 08:16:13 +00:00
675c7e4745 1
2023-06-05 00:52:34 +08:00
06271ebaf6 删除文件 README.en.md 2023-06-04 16:38:04 +00:00
c0feef99c5 删除文件 README.md 2023-06-04 16:37:57 +00:00
0bd06ca5d9 Initial commit 2023-06-04 16:37:40 +00:00