probe

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL