Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StatHealthy - StatHealthy string = "healthy" // StatUnhealthy - StatUnhealthy string = "unhealthy" // StatDeath - StatDeath string = "death" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Health ¶
type Health struct { Name string `json:"name"` Model string `json:"model"` IP string `json:"ip"` Port int `json:"port"` Address string `json:"address"` TimeInterval int `json:"time_interval"` MaxErrorsNum int `json:"max_errors_num"` MaxTimeoutSecond int `json:"max_timeout"` }
Health ServiceHealth
type HealthStatus ¶
type HealthStatus struct { Name string `json:"name"` Status string `json:"status"` ErrorNumber int `json:"error_number"` ErrorDuration time.Duration `json:"error_duration"` StartErrorTime time.Time `json:"start_error_time"` Info string `json:"info"` LastStatus string `json:"last_status"` StatusChange bool `json:"status_change"` }
HealthStatus health status
Click to show internal directories.
Click to hide internal directories.