Documentation
¶
Index ¶
Constants ¶
View Source
const SchedulerApiVersion = "/api/v1"
SchedulerApiVersion 控制台 JSON API 的路径前缀;升级 Scheduler API 时只改此处。
Variables ¶
This section is empty.
Functions ¶
func ForwardGET ¶
ForwardGET 将 GET 转发到 Scheduler 控制台 API;relPath 须以 / 开头且不含 SchedulerApiVersion,例如 /console/tasks。
func ForwardPOST ¶
ForwardPOST 将当前请求的 body 原样 POST 到 Scheduler 控制台 API;relPath 约定同 ForwardGET。
func ForwardSchedulerRawGET ¶
ForwardSchedulerRawGET 透传 Scheduler 上任意 GET。 用于 app-starter 固定路由(如 /m/healthy:仅 HTTP 码表意、200 正常;另有 /m/ready、pprof 等),保留上游状态码与 Content-Type。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.