Documentation ¶
Index ¶
- Variables
- func SortProblemsByClientID(problems []*rules.Problem, desc bool)
- func SortProblemsByCreatedAt(problems []*rules.Problem, desc bool)
- func SortProblemsByResolvedAt(problems []*rules.Problem, desc bool)
- func SortProblemsByRuleID(problems []*rules.Problem, desc bool)
- func SortProblemsByState(problems []*rules.Problem, desc bool)
- func SortProblemsFunc(sorts []query.SortOption) (sortFunc func(a []*rules.Problem, desc bool), desc bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedProblemsFields = map[string]map[string]bool{ "problems": { "problem_id": true, "rule_id": true, "client_id": true, "client_name": true, "active": true, "created_at": true, "resolved_at": true, }, }
View Source
var SupportedProblemsFilters = map[string]bool{ "problem_id": true, "rule_id": true, "client_id": true, "client_name": true, "active": true, "created_at[gt]": true, "resolved_at[gt]": true, "created_at[lt]": true, "resolved_at[lt]": true, "created_at[eq]": true, "resolved_at[eq]": true, }
View Source
var SupportedProblemsListFields = map[string][]string{
"fields[problems]": {
"problem_id",
"rule_id",
"client_id",
"client_name",
"active",
"created_at",
"resolved_at",
},
}
Functions ¶
func SortProblemsByClientID ¶
func SortProblemsByCreatedAt ¶
func SortProblemsByRuleID ¶
func SortProblemsByState ¶
func SortProblemsFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.