{
  "repo": "tidbcloud/core-svc",
  "binary": "health-checker",
  "binary_path": "portal/cmd/health-checker/main.go",
  "dependencies": {
    "HealthCheckerLifecycle.ParseFlags": {
      "infrastructure": {},
      "services": []
    },
    "HealthCheckerLifecycle.InitAllowSubnet": {
      "infrastructure": {},
      "services": []
    },
    "HealthCheckerLifecycle.StartHTTPServer": {
      "infrastructure": {
        "http_server": {
          "conditions": [
            "allow-cidr parsed successfully"
          ],
          "operations": [
            {
              "operation": "LISTEN_AND_SERVE",
              "trigger": "Serve the health-checker control endpoints on port 8080",
              "conditions": [
                "Always after the handlers are registered"
              ],
              "implementation": "http.HandleFunc(\"/healthz\", statusHandler); http.HandleFunc(\"/toggle\", toggleHandler); http.HandleFunc(\"/down\", downHandler); http.ListenAndServe(\":8080\", nil)"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /healthz": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /toggle": {
      "infrastructure": {},
      "services": []
    },
    "HTTP GET /down": {
      "infrastructure": {},
      "services": []
    }
  }
}
