{
  "repo": "tidbcloud/dbaas",
  "binary": "internalportal-server",
  "binary_path": "internalportal/cmd/server/main.go",
  "dependencies": {
    "Runtime InternalPortalHTTP.Server": {
      "infrastructure": {
        "http": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "SERVE HTTP",
              "trigger": "Run the internal portal API router",
              "conditions": [
                "The internal portal server starts successfully"
              ],
              "implementation": "api.InitRouter().Run(config.Global().ServerConfig.InternalPortalListenAddr)"
            }
          ]
        },
        "mysql": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "INIT DATABASE ACCESS",
              "trigger": "Initialize MySQL-backed model layer",
              "conditions": [
                "The internal portal server starts"
              ],
              "implementation": "models.InitMySQL(false)"
            }
          ]
        }
      },
      "services": []
    }
  }
}
