Documentation
¶
Index ¶
- Constants
- type BrandsCache
- type Index
- func (s *Index) BrandsCache(ctx context.Context, lang string) (BrandsCache, error)
- func (s *Index) CategoriesCache(ctx context.Context, lang string) ([]items.Item, error)
- func (s *Index) FactoriesCache(ctx context.Context, lang string) ([]items.Item, error)
- func (s *Index) GenerateBrandsCache(ctx context.Context, lang string) error
- func (s *Index) GenerateCategoriesCache(ctx context.Context, lang string) error
- func (s *Index) GenerateFactoriesCache(ctx context.Context, lang string) error
- func (s *Index) GeneratePersonsCache(ctx context.Context, pictureItemType pictures.ItemPictureType, lang string) error
- func (s *Index) GenerateTwinsCache(ctx context.Context, lang string) error
- func (s *Index) PersonsCache(ctx context.Context, pictureItemType pictures.ItemPictureType, lang string) ([]items.Item, error)
- func (s *Index) TwinsCache(ctx context.Context, lang string) (TwinsCache, error)
- type TwinsCache
Constants ¶
View Source
const ( TopBrandsCount = 150 TopPersonsCount = 5 TopFactoriesCount = 8 TopCategoriesCount = 15 TopTwinsBrandsCount = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrandsCache ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func NewIndex ¶
func NewIndex(redis *redis.Client, repository *items.Repository) *Index
func (*Index) BrandsCache ¶
func (*Index) CategoriesCache ¶
func (*Index) FactoriesCache ¶
func (*Index) GenerateBrandsCache ¶
func (*Index) GenerateCategoriesCache ¶
func (*Index) GenerateFactoriesCache ¶
func (*Index) GeneratePersonsCache ¶
func (*Index) GenerateTwinsCache ¶
func (*Index) PersonsCache ¶
func (*Index) TwinsCache ¶
type TwinsCache ¶
Click to show internal directories.
Click to hide internal directories.