Go to file
black1552 95623f3802 refactor(gateway): 重构反向代理实现以支持 WebSocket 和 HTTP 请求
- 添加 gclient 和 gstr 依赖包用于 HTTP 客户端操作
- 实现新的 BuildRequest 函数,使用 gclient 处理普通 HTTP 请求
- 分离 WebSocket 请求处理到独立的 proxyWebSocket 函数
- 移除旧的 hasProtocol 函数和相关逻辑
- 添加完整的请求头和响应头复制机制
- 实现响应状态码和响应体的正确传递
- 简化 WebSocket 代理逻辑,使用标准反向代理处理
2026-03-06 17:00:37 +08:00
autoMigrate 第一次提交 2026-01-30 15:51:42 +08:00
baseGrpc 第一次提交 2026-01-30 15:51:42 +08:00
db feat(database): 将数据库连接池从 NutsDB 迁移到 SQLite 2026-02-27 16:35:21 +08:00
excel 第一次提交 2026-01-30 15:51:42 +08:00
log feat(log): 实现日志系统彩色输出和文件分离功能 2026-03-06 10:20:55 +08:00
mqtt/client 第一次提交 2026-01-30 15:51:42 +08:00
pool feat(database): 将数据库连接池从 NutsDB 迁移到 SQLite 2026-02-27 16:35:21 +08:00
server refactor(gateway): 重构反向代理实现以支持 WebSocket 和 HTTP 请求 2026-03-06 17:00:37 +08:00
task 第一次提交 2026-01-30 15:51:42 +08:00
tcp feat(tcp): 实现消息帧格式处理,添加缓冲区存储未处理数据 2026-03-02 09:03:38 +08:00
utils feat(utils): 为 CURD 操作添加 HookHandler 支持 2026-02-13 10:59:28 +08:00
.gitignore 第一次提交 2026-01-30 15:51:42 +08:00
LICENSE 第一次提交 2026-01-30 15:51:42 +08:00
README.md 第一次提交 2026-01-30 15:51:42 +08:00
go.mod chore(deps): 更新项目依赖包到最新版本 2026-03-06 10:24:02 +08:00
go.sum chore(deps): 更新项目依赖包到最新版本 2026-03-06 10:24:02 +08:00

README.md

Copyright 2021 black1552

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.