Documentation
¶
Overview ¶
Package readstats counts the applications by status and by source, without reading them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stats ¶
type Stats struct {
Total int `json:"total"`
// ByStatus has every status, 0 included.
ByStatus map[domain.Status]int `json:"by_status"`
// BySource has the sources in use: an agent reuses their names rather than make a near double.
BySource map[domain.Source]int `json:"by_source"`
// ResponseRate is the share of applications that got past applied, 0 to 1; left out without applications.
ResponseRate *float64 `json:"response_rate,omitempty" binding:"optional"`
// ResponseRateBySource is ResponseRate for each source of BySource.
ResponseRateBySource map[domain.Source]float64 `json:"response_rate_by_source"`
}
Stats are the counts of the applications.
Click to show internal directories.
Click to hide internal directories.