Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(maxRecvMsgSize int, sourceIPs *middleware.SourceIPExtractor, push Func) http.Handler
Handler is a http.Handler which accepts WriteRequests.
func OTLPHandler ¶ added in v1.17.0
func OTLPHandler(sourceIPs *middleware.SourceIPExtractor, push Func) http.Handler
OTLPHandler is a http.Handler which accepts OTLP metrics.
Types ¶
type Func ¶ added in v1.8.0
type Func func(context.Context, *cortexpb.WriteRequest) (*cortexpb.WriteResponse, error)
Func defines the type of the push. It is similar to http.HandlerFunc.
Click to show internal directories.
Click to hide internal directories.