Documentation
¶
Overview ¶
Package readstats counts the applications: GET /api/stats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(db bun.IDB) http.HandlerFunc
Handler counts the applications by status and by source, and the share that got an answer, on a period or a source. @Summary Count the applications @Tags applications @Produce json @Param source query string false "Source: spontaneous, job_post, recruiter or a name given by the user, any case" @Param applied_before query string false "applied_at < this day (2026-01-31)" @Param applied_after query string false "applied_at > this day (2026-01-31)" @Success 200 {object} readstats.Stats @Failure 400 {object} respond.Failure @Failure 401 {object} respond.Failure @Router /api/stats [get]
Types ¶
This section is empty.