Versions in this module Expand all Collapse all v0 v0.1.0 Apr 26, 2022 Changes in this version + var NotFoundField = errors.New("Field not found") + type CustomQueryTypeBuilder interface + Build func() (QueryTypeMapper, error) + MustBuild func() QueryTypeMapper + SetFieldFunc func(f ValidateFieldFunc) CustomQueryTypeBuilder + SetTypeMapperFunc func(f TypeMapperFunc) CustomQueryTypeBuilder + SetValidateValuesFunc func(f ValidateValuesFunc) CustomQueryTypeBuilder + func NewCustomQueryTypeBuilder() CustomQueryTypeBuilder + type QueryTypeFactory struct + Querys map[string]QueryTypeMapper + func NewQueryTypeFactory() *QueryTypeFactory + func (q *QueryTypeFactory) AddField(field string, queryType QueryTypeMapper) *QueryTypeFactory + func (q *QueryTypeFactory) AddQueryTypeMapperField(field string, queryType QueryTypeMapper) + func (q *QueryTypeFactory) MapField(field string, values []string) (interface{}, error) + func (q *QueryTypeFactory) MapRegexField(field string, values []string) (interface{}, error) + func (q *QueryTypeFactory) ToQueryTypeMapper() QueryTypeMapper + func (q *QueryTypeFactory) ToQueryTypeRegexMapper() QueryTypeMapper + func (q *QueryTypeFactory) Validate(field string, values []string) error + func (q *QueryTypeFactory) ValidateRegexField(field string, values []string) error + type QueryTypeMapper interface + Map func(field string, values []string) (interface{}, error) + ValidateField func(field string) error + ValidateValues func(values []string) error + type TypeMapperFunc func(field string, values []string) (interface{}, error) + type ValidateFieldFunc func(field string) error + type ValidateValuesFunc func(values []string) error