http

package
v0.5.13 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 HandleWithCORS

func HandleWithCORS(h http.Handler) http.Handler

func ListenAndServe

func ListenAndServe(ctx context.Context, servers ...*http.Server)

func MetricsPathFormatter

func MetricsPathFormatter(statusCode int, path string) string

MetricsPathFormatter returns empty string on HTTP 301, 400, 404 or 405 statusCode

func VerifyAuthToken

func VerifyAuthToken(ctx context.Context, hdsClient *hds.Client) func(*websocket.Config, *http.Request) error

func VerifyAuthTokenHandler

func VerifyAuthTokenHandler(hdsClient *hds.Client, next http.HandlerFunc) func(http.ResponseWriter, *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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