Registered on the default FlagSet; ListenAndServe intercepts it and exits 0/1 after probing /health on the -listen address. Lets checker-* Dockerfiles add HEALTHCHECK without any main.go change, even though the runtime image is scratch (no shell, no curl, no wget). |
||
|---|---|---|
| .. | ||
| healthcheck.go | ||
| healthcheck_test.go | ||
| interactive.go | ||
| interactive_test.go | ||
| server.go | ||
| server_test.go | ||