You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
353 B

package model
// RankType
const (
MaxDurationRank = "max_duration"
MinDurationRank = "min_duration"
AvgDurationRank = "avg_duration"
ErrorsRank = "errors"
)
// VerifyRankType .
func VerifyRankType(rankType string) bool {
switch rankType {
case MaxDurationRank, MinDurationRank, AvgDurationRank, ErrorsRank:
return true
}
return false
}