Skip to content

[EPIC-GW-03] 本地控制面契约硬化(JSON-RPC 错误模型 + MessageFrame 归一化) #300

Description

@pionxe

目标 (Goal)
把控制面请求稳定收敛为“外层 JSON-RPC、内层统一 gateway.MessageFrame 语义”,减少后续接 Runtime 的改造成本。

涉及范围 (Scope)

  • 修改:gateway protocol/router/adapter 层的请求归一化与错误映射。
  • 新增:标准错误码映射表(JSON-RPC code + gateway stable code)。
  • 不涉及:新增业务能力、网络访问面。

实现清单 (Checklist / To-Do)

  • 建立 JSON-RPC -> 内部统一请求模型的归一化层。
  • 统一错误返回:error.code + error.data.gateway_code
  • 约束请求大小、超时、并发上限(控制面治理参数)。
  • 增补覆盖率测试与协议回归测试。

验收标准 (Acceptance Criteria)

  • gateway.pingwake.openUrl 全链路使用统一归一化层。
  • 协议错误码稳定可断言。
  • 压测下无明显 goroutine 泄漏与连接失控。

依赖的前置 PR (Depends On)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions