Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2024 Changes in this version + func CleanFilter(filter interface{}, specs ...CleanSpec) interface + func CleanOrders(orders []*definition.Order, specs ...CleanSpec) []*definition.Order + func CleanQuery(queryData *filterparams.QueryData, specs ...CleanSpec) *filterparams.QueryData + type CleanSpec struct + DataType DataType + Name string + Rules []Rule + func GetCleanSpecs(v interface{}) []CleanSpec + type DataType interface + IsFilterAllowed func(filter *definition.Filter) bool + Parse func(value interface{}) (interface{}, bool) + func BoolDataType() DataType + func FloatDataType(bits int) DataType + func IntDataType(bits int) DataType + func NilableDataType(dataType DataType) DataType + func StringDataType() DataType + func TimeDataType(inFormat string, outFormat string) DataType + func UintDataType(bits int) DataType + type Rule interface + Validate func(value interface{}) bool + type RuleFunc func(value interface{}) bool + func (r RuleFunc) Validate(value interface{}) bool