Documentation ¶
Index ¶
- type CommerceSearchFacet
- type CommerceSearchFacetItem
- type CommerceSearchKeyValueFilter
- type CommerceSearchListFacet
- type CommerceSearchListFacetItem
- type CommerceSearchRangeFacet
- type CommerceSearchRangeFacetItem
- func (c *CommerceSearchRangeFacetItem) Count() int
- func (c *CommerceSearchRangeFacetItem) Label() string
- func (c *CommerceSearchRangeFacetItem) Max() int
- func (c *CommerceSearchRangeFacetItem) Min() int
- func (c *CommerceSearchRangeFacetItem) Selected() bool
- func (c *CommerceSearchRangeFacetItem) SelectedMax() int
- func (c *CommerceSearchRangeFacetItem) SelectedMin() int
- func (c *CommerceSearchRangeFacetItem) Value() string
- type CommerceSearchRequest
- type CommerceSearchSortOption
- type CommerceSearchTreeFacet
- type CommerceSearchTreeFacetItem
- func (c *CommerceSearchTreeFacetItem) Active() bool
- func (c *CommerceSearchTreeFacetItem) Count() int
- func (c *CommerceSearchTreeFacetItem) Items() []*CommerceSearchTreeFacetItem
- func (c *CommerceSearchTreeFacetItem) Label() string
- func (c *CommerceSearchTreeFacetItem) Selected() bool
- func (c *CommerceSearchTreeFacetItem) Value() string
- type PromotionDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommerceSearchFacet ¶
type CommerceSearchFacet interface { Name() string Label() string Position() int // Items() []CommerceSearchFacetItem HasSelectedItem() bool }
CommerceSearchFacet interface for facets
type CommerceSearchFacetItem ¶
type CommerceSearchFacetItem interface { Label() string Value() string Selected() bool Count() int }
CommerceSearchFacetItem interface for facet items
type CommerceSearchKeyValueFilter ¶
CommerceSearchKeyValueFilter - key value filter for CommerceSearchRequest
type CommerceSearchListFacet ¶
type CommerceSearchListFacet struct {
// contains filtered or unexported fields
}
CommerceSearchListFacet dto for list facets
func WrapListFacet ¶
func WrapListFacet(facet searchdomain.Facet) *CommerceSearchListFacet
WrapListFacet wraps the list facet into the graphql dto
func (*CommerceSearchListFacet) HasSelectedItem ¶
func (c *CommerceSearchListFacet) HasSelectedItem() bool
HasSelectedItem getter
func (*CommerceSearchListFacet) Items ¶
func (c *CommerceSearchListFacet) Items() []*CommerceSearchListFacetItem
Items getter
func (*CommerceSearchListFacet) Label ¶
func (c *CommerceSearchListFacet) Label() string
Label getter
func (*CommerceSearchListFacet) Position ¶
func (c *CommerceSearchListFacet) Position() int
Position getter
type CommerceSearchListFacetItem ¶
type CommerceSearchListFacetItem struct {
// contains filtered or unexported fields
}
CommerceSearchListFacetItem dto for list facet items
func (*CommerceSearchListFacetItem) Count ¶
func (c *CommerceSearchListFacetItem) Count() int
Count getter
func (*CommerceSearchListFacetItem) Label ¶
func (c *CommerceSearchListFacetItem) Label() string
Label getter
func (*CommerceSearchListFacetItem) Selected ¶
func (c *CommerceSearchListFacetItem) Selected() bool
Selected getter
func (*CommerceSearchListFacetItem) Value ¶
func (c *CommerceSearchListFacetItem) Value() string
Value getter
type CommerceSearchRangeFacet ¶
type CommerceSearchRangeFacet struct {
// contains filtered or unexported fields
}
CommerceSearchRangeFacet dto for range facets
func WrapRangeFacet ¶
func WrapRangeFacet(facet searchdomain.Facet) *CommerceSearchRangeFacet
WrapRangeFacet wraps the range facet into the graphql dto
func (*CommerceSearchRangeFacet) HasSelectedItem ¶
func (c *CommerceSearchRangeFacet) HasSelectedItem() bool
HasSelectedItem getter
func (*CommerceSearchRangeFacet) Items ¶
func (c *CommerceSearchRangeFacet) Items() []*CommerceSearchRangeFacetItem
Items getter
func (*CommerceSearchRangeFacet) Label ¶
func (c *CommerceSearchRangeFacet) Label() string
Label getter
func (*CommerceSearchRangeFacet) Name ¶
func (c *CommerceSearchRangeFacet) Name() string
Name getter
func (*CommerceSearchRangeFacet) Position ¶
func (c *CommerceSearchRangeFacet) Position() int
Position getter
type CommerceSearchRangeFacetItem ¶
type CommerceSearchRangeFacetItem struct {
// contains filtered or unexported fields
}
CommerceSearchRangeFacetItem dto for range facet items
func (*CommerceSearchRangeFacetItem) Count ¶
func (c *CommerceSearchRangeFacetItem) Count() int
Count getter
func (*CommerceSearchRangeFacetItem) Label ¶
func (c *CommerceSearchRangeFacetItem) Label() string
Label getter
func (*CommerceSearchRangeFacetItem) Max ¶
func (c *CommerceSearchRangeFacetItem) Max() int
Max getter
func (*CommerceSearchRangeFacetItem) Min ¶
func (c *CommerceSearchRangeFacetItem) Min() int
Min getter
func (*CommerceSearchRangeFacetItem) Selected ¶
func (c *CommerceSearchRangeFacetItem) Selected() bool
Selected getter
func (*CommerceSearchRangeFacetItem) SelectedMax ¶
func (c *CommerceSearchRangeFacetItem) SelectedMax() int
SelectedMax getter
func (*CommerceSearchRangeFacetItem) SelectedMin ¶
func (c *CommerceSearchRangeFacetItem) SelectedMin() int
SelectedMin getter
func (*CommerceSearchRangeFacetItem) Value ¶
func (c *CommerceSearchRangeFacetItem) Value() string
Value getter
type CommerceSearchRequest ¶
type CommerceSearchRequest struct { PageSize int Page int SortBy string KeyValueFilters []CommerceSearchKeyValueFilter Query string }
CommerceSearchRequest - search request structure for GraphQL
type CommerceSearchSortOption ¶
CommerceSearchSortOption – search option structure for GraphQL
type CommerceSearchTreeFacet ¶
type CommerceSearchTreeFacet struct {
// contains filtered or unexported fields
}
CommerceSearchTreeFacet dto for tree facets
func WrapTreeFacet ¶
func WrapTreeFacet(facet searchdomain.Facet) *CommerceSearchTreeFacet
WrapTreeFacet wraps the tree facet into the graphql dto
func (*CommerceSearchTreeFacet) HasSelectedItem ¶
func (c *CommerceSearchTreeFacet) HasSelectedItem() bool
HasSelectedItem getter
func (*CommerceSearchTreeFacet) Items ¶
func (c *CommerceSearchTreeFacet) Items() []*CommerceSearchTreeFacetItem
Items getter
func (*CommerceSearchTreeFacet) Label ¶
func (c *CommerceSearchTreeFacet) Label() string
Label getter
func (*CommerceSearchTreeFacet) Position ¶
func (c *CommerceSearchTreeFacet) Position() int
Position getter
type CommerceSearchTreeFacetItem ¶
type CommerceSearchTreeFacetItem struct {
// contains filtered or unexported fields
}
CommerceSearchTreeFacetItem dto for tree facet items
func (*CommerceSearchTreeFacetItem) Active ¶
func (c *CommerceSearchTreeFacetItem) Active() bool
Active getter
func (*CommerceSearchTreeFacetItem) Count ¶
func (c *CommerceSearchTreeFacetItem) Count() int
Count getter
func (*CommerceSearchTreeFacetItem) Items ¶
func (c *CommerceSearchTreeFacetItem) Items() []*CommerceSearchTreeFacetItem
Items getter
func (*CommerceSearchTreeFacetItem) Label ¶
func (c *CommerceSearchTreeFacetItem) Label() string
Label getter
func (*CommerceSearchTreeFacetItem) Selected ¶
func (c *CommerceSearchTreeFacetItem) Selected() bool
Selected getter
func (*CommerceSearchTreeFacetItem) Value ¶
func (c *CommerceSearchTreeFacetItem) Value() string
Value getter
type PromotionDTO ¶ added in v3.4.0
type PromotionDTO struct {
// contains filtered or unexported fields
}
PromotionDTO contains promotion data exposed via graphql
func WrapPromotion ¶ added in v3.4.0
func WrapPromotion(promotion *domain.Promotion) *PromotionDTO
WrapPromotion of search domain with PromotionDTO
func (*PromotionDTO) Content ¶ added in v3.4.0
func (p *PromotionDTO) Content() string
Content of the promotion
func (*PromotionDTO) Media ¶ added in v3.4.0
func (p *PromotionDTO) Media() *domain.Media
Media of the promotion
func (*PromotionDTO) Title ¶ added in v3.4.0
func (p *PromotionDTO) Title() string
Title of the promotion