Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByEntityAttribute ¶
type ByEntityAttribute struct { FormDisplayName string FormFieldName string FilterEntityKey entity.Key ProductCompoundField string ProductFilteredAttributeFieldName string }
func (*ByEntityAttribute) ParseQueryParameters ¶
func (f *ByEntityAttribute) ParseQueryParameters(query url.Values) Instance
type ByMappedStructValueInArrayField ¶
type ByMappedStructValueInArrayField struct { FormDisplayName string FormFieldName string FieldName string StructValueToFilterValue func(interface{}) string BuildCondition func(fieldName string, values []string) query.Expression // TODO: probably responsibility of an wrapper, or of ViewModel post-processing,... // (any filter / ViewModel could use sorting) LessFunc func(string, string) bool }
func (*ByMappedStructValueInArrayField) ParseQueryParameters ¶
func (f *ByMappedStructValueInArrayField) ParseQueryParameters(query url.Values) Instance
type Group ¶
type Group struct {
Filters []Filter
}
func (*Group) ParseQuery ¶
func (g *Group) ParseQuery(query url.Values) *GroupInstance
type GroupInstance ¶
type GroupInstance struct {
// contains filtered or unexported fields
}
func (*GroupInstance) BuildConditions ¶
func (i *GroupInstance) BuildConditions() []query.Expression
func (*GroupInstance) BuildViewModels ¶
func (i *GroupInstance) BuildViewModels(accessor model.DomainAccessor, relevantInstances []projection.Instance) []ViewModel
TODO: coupled to projection.Instance,... could support both entities and projections
func (*GroupInstance) QueryParams ¶
func (i *GroupInstance) QueryParams() []string
TODO: maybe return url.Values
type Instance ¶
type Instance interface { Present() bool BuildCondition() query.Expression QueryParams() []string BuildOptions(accessor model.DomainAccessor, instances []projection.Instance) ViewModel }
type ViewModel ¶
type ViewModel struct { Name string FieldName string Options []ViewModelOption AnythingChecked bool ClearURL string }
type ViewModelOption ¶
Click to show internal directories.
Click to hide internal directories.