Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSearchIndex ¶
func InitSearchIndex(coll ...*mongo.Collection) *errors.AppError
Types ¶
type CategoryRepository ¶
type CategoryRepository interface {
GetCategories(filter interface{}, opts ...*options.FindOptions) ([]*category.Category, error)
}
type ItemRepository ¶
type ItemRepository interface {
GetItems(filter interface{}, opts ...*options.FindOptions) ([]*item.Item, error)
}
type SearchController ¶
type SearchController struct {
// contains filtered or unexported fields
}
func NewSearchController ¶
func NewSearchController(itemRepo ItemRepository, categoryRepo CategoryRepository) *SearchController
func (*SearchController) Search ¶
func (sc *SearchController) Search(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.