MCPcopy Create free account
hub / github.com/cortexproject/cortex / HTTPReadinessProbe

Struct HTTPReadinessProbe

integration/e2e/service.go:423–429  ·  view source on GitHub ↗

HTTPReadinessProbe checks readiness by making HTTP call and checking for expected HTTP status code

Source from the content-addressed store, hash-verified

421
422// HTTPReadinessProbe checks readiness by making HTTP call and checking for expected HTTP status code
423type HTTPReadinessProbe struct {
424 port int
425 path string
426 expectedStatusRangeStart int
427 expectedStatusRangeEnd int
428 expectedContent []string
429}
430
431func NewHTTPReadinessProbe(port int, path string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string) *HTTPReadinessProbe {
432 return &HTTPReadinessProbe{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected