Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the handler for /v0/pipeline.
func NewHandler ¶
func NewHandler(bqClient bqiface.Client, exporter Exporter, config map[string]config.Config) *Handler
NewHandler returns a new Handler.
func (*Handler) ServeHTTP ¶
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles requests to the /pipeline endpoint. This endpoint runs the entire statistics generation pipeline for the provided year, i.e. every configured histogram table is updated and every configured exporting task is run.
The querystring parameters are:
- year (mandatory): the year to generate statistics for.
- step: specify which step of the pipeline to run (histograms or exports). A value of "all" runs all the steps.
This endpoint accepts only POST requests.
Click to show internal directories.
Click to hide internal directories.