Skip to content

M1: 后端 #15

Description

@DeliciousBuding

背景

负责 Hub Server,以及 Edge Server 与 Hub Server 的通信边界。目标是让后续 Web/Mobile、同步、中继和远程控制有清楚的 Go 服务基础。

要做什么

  • 搭建 hub-server/ Go 服务入口和基础路由。
  • 明确 Edge 注册、心跳、设备状态、同步、relay 的接口边界。
  • edge-server/ 中保留 Hub client 入口,不把 Hub 逻辑写死进 Edge 本地执行路径。
  • 对齐 api/openapi.yamlapi/events.md,缺接口先补 API 再实现。
  • 优先参考 docs/reference/03-build/backend/16-hub-server-requirements.md02-go-services.md

验收标准

  • Hub Server 能启动并提供 health endpoint。
  • Edge-Hub 注册/心跳接口有最小可运行实现或清楚 mock。
  • 服务边界写入对应 README 或实现文档。
  • go test ./... 可运行,暂时不能运行时写明原因。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request后端Hub Server、Edge-Hub 通信和后端服务

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions