Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistCountRanker ¶
type DistCountRanker struct { }
func NewDistCountRanker ¶
func NewDistCountRanker() *DistCountRanker
func (*DistCountRanker) Rank ¶
func (r *DistCountRanker) Rank(productImages []search.ProductImage) []Product
type FirstImageRanker ¶
type FirstImageRanker struct { }
FirstImageRanker implements Ranker interface{}
func NewFirstImageRanker ¶
func NewFirstImageRanker() *FirstImageRanker
NewFirstImageRanker returns a new FirstImageRanker
func (*FirstImageRanker) Rank ¶
func (r *FirstImageRanker) Rank(productImages []search.ProductImage) []Product
Rank implements Ranker interface{}
type Ranker ¶
type Ranker interface {
Rank(productImages []search.ProductImage) []Product
}
Click to show internal directories.
Click to hide internal directories.