Documentation ¶
Index ¶
Constants ¶
View Source
const MetricsEndpoint = "/metrics"
MetricsEndpoint endpoint subpath for metrics
View Source
const TenantHeaderKey = "tenant"
TenantHeaderKey in this header the right tenant should be inserted
View Source
const URLParamTenantID = "tntid"
URLParamTenantID url parameter for the tenant id
Variables ¶
This section is empty.
Functions ¶
func MetricsHandler ¶
func MetricsHandler(cfg MetricsConfig) func(next http.Handler) http.Handler
MetricsHandler creates a new directly usable handler
Types ¶
type Handler ¶
type Handler interface { // Routes get the routes Routes() (string, *chi.Mux) }
Handler a http REST interface handler
type MetricsConfig ¶
type MetricsConfig struct { // Skip particular requests from the handler SkipFunc func(r *http.Request) bool }
MetricsConfig defining a handler for checking system id and api key
Click to show internal directories.
Click to hide internal directories.