docs(sdk): 修正 ProxyReg 字段注释里的旧名(DeclareProxy→RegisterProxy)

Rename 时漏改了字段注释。代码本身一致(proxyReg 字段 + RegisterProxy 方法),
但注释里写着一个不存在的 API 名,读者按注释找不到方法。
This commit is contained in:
JianFeeeee
2026-09-26 13:18:55 +08:00
parent 8b85f9f9fe
commit b381f34259
2 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ type SDKConfig struct {
func New(name string, cfg SDKConfig) *PluginSDK {
base := pubsdk.New(name, cfg.Settings, cfg.RegTool, cfg.RegStage, cfg.RegAPI, cfg.RegOutput)
// 反代声明收集:内置插件(无 plugin.json)在 Start 里用 DeclareProxy
// 反代声明收集:内置插件(无 plugin.json)在 Start 里用 RegisterProxy
// 声明自己的服务,落到本包的登记表;外部插件走 plugin.json 自动发现。
base.SetProxyRegistrar(func(svc string, d pubsdk.ProxyDef) { RegisterBuiltinProxy(name, svc, d) })
if cfg.IOManager != nil {