MCPcopy
hub / github.com/PatchMon/PatchMon / boolStatus

Function boolStatus

server-source-code/internal/server/router.go:740–745  ·  view source on GitHub ↗
(ok bool)

Source from the content-addressed store, hash-verified

738}
739
740func boolStatus(ok bool) string {
741 if ok {
742 return "ok"
743 }
744 return "unhealthy"
745}
746
747// corsOriginResolver returns a dynamic origin for context-aware mode.
748// When ctxRegistry has an entry for X-Forwarded-Host, returns (origin, true).

Callers 1

healthHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected