verify

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command verify 用 SDK 托管本地服务,打印隧道公网 URL 供浏览器访问。

前置:先在另一个终端用 python 起本地服务:

python3 -m http.server 18080

然后运行本程序:

export HW_API_KEY="your-api-key"
go run ./cmd/verify

流程:

  1. 检测本地端口是否已被 python 服务占用(等待用户起好服务)
  2. 用 SDK 创建隧道 + 添加端口
  3. 用 SDK 启动 Host,把本地端口托管到 DevBridge 中继
  4. 打印隧道公网 URL,在浏览器打开即可访问
  5. Ctrl+C 退出时自动删除隧道

可选环境变量:

PORT         本地服务端口/隧道端口(默认 18080)
TUNNEL_NAME  隧道名称(默认 sdk-verify)
KEEP_TUNNEL  设为 1 时退出不删隧道,便于复查
API_BASE_URL 覆盖 SDK 默认 REST API 地址
GATEWAY_ADDR 覆盖 SDK 默认网关地址(host:port)
GATEWAY_HOST 覆盖 SDK 默认网关 SNI host

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL