Documentation ¶
Index ¶
- func HandleHealthCheck(w http.ResponseWriter, r *http.Request)
- func HandleReadyCheck(readinessCheck func() bool) http.HandlerFunc
- func HandleVersion(version string) http.HandlerFunc
- func HandleWithCORS(h http.Handler) http.Handler
- func ListenAndServe(ctx context.Context, servers ...*http.Server)
- func MetricsPathFormatter(statusCode int, path string) string
- func VerifyAuthToken(ctx context.Context, hdsClient *hds.Client) func(*websocket.Config, *http.Request) error
- func VerifyAuthTokenHandler(hdsClient *hds.Client, next http.HandlerFunc) func(http.ResponseWriter, *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleHealthCheck ¶
func HandleHealthCheck(w http.ResponseWriter, r *http.Request)
func HandleReadyCheck ¶ added in v0.5.8
func HandleReadyCheck(readinessCheck func() bool) http.HandlerFunc
func HandleVersion ¶
func HandleVersion(version string) http.HandlerFunc
func MetricsPathFormatter ¶
MetricsPathFormatter returns empty string on HTTP 301, 400, 404 or 405 statusCode
func VerifyAuthToken ¶
func VerifyAuthTokenHandler ¶
func VerifyAuthTokenHandler(hdsClient *hds.Client, next http.HandlerFunc) func(http.ResponseWriter, *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.