search

package
v0.0.0-...-56fc341 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 10 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL