From 27b82f77a3766eebd3cd0d5a334a8cb86f097459 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 18 Jan 2024 21:57:01 -0500 Subject: [PATCH] fix: drop duplicate --- plugins/app-json/appjson.go | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/plugins/app-json/appjson.go b/plugins/app-json/appjson.go index 5b11c2492..cba952105 100644 --- a/plugins/app-json/appjson.go +++ b/plugins/app-json/appjson.go @@ -65,42 +65,6 @@ type Formation struct { // MaxParallel is the maximum number of processes to start in parallel MaxParallel *int `json:"max_parallel"` } -type Healthcheck struct { - Attempts int32 `json:"attempts,omitempty"` - Command []string `json:"command,omitempty"` - Content string `json:"content,omitempty"` - HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"` - InitialDelay int32 `json:"initialDelay,omitempty"` - Listening bool `json:"listening,omitempty"` - Name string `json:"name,omitempty"` - Path string `json:"path,omitempty"` - Port int `json:"port,omitempty"` - Scheme string `json:"scheme,omitempty"` - Timeout int32 `json:"timeout,omitempty"` - Type HealthcheckType `json:"type,omitempty"` - Uptime int32 `json:"uptime,omitempty"` - Wait int32 `json:"wait,omitempty"` - Warn bool `json:"warn,omitempty"` - OnFailure *OnFailure `json:"onFailure,omitempty"` -} - -type HealthcheckType string - -const ( - HealthcheckType_Liveness HealthcheckType = "liveness" - HealthcheckType_Readiness HealthcheckType = "readiness" - HealthcheckType_Startup HealthcheckType = "startup" -) - -type HTTPHeader struct { - Name string `json:"name,omitempty"` - Value string `json:"value,omitempty"` -} - -type OnFailure struct { - Command []string `json:"command,omitempty"` - Url string `json:"url,omitempty"` -} // Healthcheck is a struct that represents a single healthcheck from an app.json file type Healthcheck struct {