Documentation
¶
Index ¶
- func Append(mw ...middleware) func(http.Handler) http.Handler
- func Logger(next http.Handler) http.Handler
- func ProjectIDValidator(next http.Handler) http.Handler
- func RequestDurationMetrics(duration prometheus.Histogram, next http.Handler) http.Handler
- func ResponseCounterMetrics(counter *prometheus.CounterVec, next http.Handler) http.Handler
- func RewriteProjectScopedPath(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectIDValidator ¶
ProjectIDValidator validates the project ID in the request header It returns a Bad Request error if the project ID is missing or invalid
func RequestDurationMetrics ¶
RequestDurationMetrics measures the duration of the request and records it for Prometheus
func ResponseCounterMetrics ¶
func ResponseCounterMetrics(counter *prometheus.CounterVec, next http.Handler) http.Handler
ResponseCounterMetrics counts the number of responses and records it for Prometheus
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.