Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLiveness ¶
func CreateLiveness()
CreateLiveness sets up and starts an HTTP server on the port specified by env.ProbeLivenessPort() to serve as a liveness probe for the application. The server listens for requests at the root path ("/") and responds with an "ok" message. If there is an error starting the server, the function logs a fatal message and returns.
func CreateReadiness ¶
func CreateReadiness()
CreateReadiness sets up and starts an HTTP server on the port specified by env.ProbeReadinessPort() to serve as a readiness probe for the application. The server listens for requests at the root path ("/") and responds with an "ok" message. If there is an error starting the server, the function logs a fatal message and returns.
Types ¶
This section is empty.