Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthStateStatusCode ¶
func HealthStateStatusCode(state health.HealthState_Value) int
HealthStateStatusCode returns the http status code for the provided health.HealthState_Value or http.StatusInternalServerError if the health state value is not recognized.
func HealthStatusCode ¶
func HealthStatusCode(metadata health.HealthStatus) int
Types ¶
type HealthCheckSource ¶
type HealthCheckSource interface {
HealthStatus(ctx context.Context) health.HealthStatus
}
HealthCheckSource provides the SLS health status that should be sent as a response. Refer to the SLS specification for more information.
func NewCombinedHealthCheckSource ¶
func NewCombinedHealthCheckSource(healthCheckSources ...HealthCheckSource) HealthCheckSource
Click to show internal directories.
Click to hide internal directories.