Documentation ¶
Index ¶
- func Chain(h http.HandlerFunc, m ...middleware) http.HandlerFunc
- func DecodeJSONBody[T any]() middleware
- func EnableProfiling(mux *http.ServeMux)
- func InitMux(scrapeServer *scrapeServer) (*http.ServeMux, error)
- func MaxBytes(n int64) middleware
- func NewScrapeServer(ctx context.Context, sf store.Factory, clientFactory fetch.Factory, ...) (*scrapeServer, error)
- type BatchRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶
func Chain(h http.HandlerFunc, m ...middleware) http.HandlerFunc
Prepend the middlewares to the handler in the order they are provided.
func DecodeJSONBody ¶
func DecodeJSONBody[T any]() middleware
func EnableProfiling ¶
Types ¶
type BatchRequest ¶
type BatchRequest struct {
Urls []string `json:"urls"`
}
Click to show internal directories.
Click to hide internal directories.