[PR #5193] [MERGED] refactor: restructure API packages into client/http and server/http with typed proxy/visitor models #5159

Closed
opened 2026-05-05 14:55:51 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/5193
Author: @fatedier
Created: 3/4/2026
Status: Merged
Merged: 3/4/2026
Merged by: @fatedier

Base: devHead: new


📝 Commits (1)

  • 7b5b6bd refactor: restructure API packages into client/http and server/http with typed proxy/visitor models

📊 Changes

32 files changed (+1704 additions, -727 deletions)

View changed files

📝 client/api_router.go (+3 -3)
📝 client/config_manager.go (+90 -33)
📝 client/config_manager_test.go (+7 -4)
📝 client/configmgmt/types.go (+4 -4)
📝 client/http/controller.go (+90 -85)
📝 client/http/controller_test.go (+218 -77)
client/http/model/proxy_definition.go (+148 -0)
📝 client/http/model/types.go (+3 -17)
client/http/model/visitor_definition.go (+107 -0)
📝 pkg/config/load.go (+39 -30)
📝 pkg/config/load_test.go (+25 -0)
📝 pkg/config/source/store.go (+30 -22)
📝 pkg/config/source/store_test.go (+3 -26)
📝 pkg/config/v1/common.go (+0 -25)
pkg/config/v1/decode.go (+195 -0)
pkg/config/v1/decode_test.go (+86 -0)
📝 pkg/config/v1/proxy.go (+5 -25)
📝 pkg/config/v1/proxy_plugin.go (+5 -34)
📝 pkg/config/v1/visitor.go (+5 -25)
📝 pkg/config/v1/visitor_plugin.go (+6 -34)

...and 12 more files

📄 Description

WHY


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/5193 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 3/4/2026 **Status:** ✅ Merged **Merged:** 3/4/2026 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `new` --- ### 📝 Commits (1) - [`7b5b6bd`](https://github.com/fatedier/frp/commit/7b5b6bd5f6065d856ec146019dad9056c81fd5ca) refactor: restructure API packages into client/http and server/http with typed proxy/visitor models ### 📊 Changes **32 files changed** (+1704 additions, -727 deletions) <details> <summary>View changed files</summary> 📝 `client/api_router.go` (+3 -3) 📝 `client/config_manager.go` (+90 -33) 📝 `client/config_manager_test.go` (+7 -4) 📝 `client/configmgmt/types.go` (+4 -4) 📝 `client/http/controller.go` (+90 -85) 📝 `client/http/controller_test.go` (+218 -77) ➕ `client/http/model/proxy_definition.go` (+148 -0) 📝 `client/http/model/types.go` (+3 -17) ➕ `client/http/model/visitor_definition.go` (+107 -0) 📝 `pkg/config/load.go` (+39 -30) 📝 `pkg/config/load_test.go` (+25 -0) 📝 `pkg/config/source/store.go` (+30 -22) 📝 `pkg/config/source/store_test.go` (+3 -26) 📝 `pkg/config/v1/common.go` (+0 -25) ➕ `pkg/config/v1/decode.go` (+195 -0) ➕ `pkg/config/v1/decode_test.go` (+86 -0) 📝 `pkg/config/v1/proxy.go` (+5 -25) 📝 `pkg/config/v1/proxy_plugin.go` (+5 -34) 📝 `pkg/config/v1/visitor.go` (+5 -25) 📝 `pkg/config/v1/visitor_plugin.go` (+6 -34) _...and 12 more files_ </details> ### 📄 Description ### WHY <!-- author to complete --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:55:51 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#5159
No description provided.