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.
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.