Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortAlphaAsc = model.SortOption{ Name: "alpha-asc", DisplayName: "Alphabetically (A–Z)", Description: "Sort results in an alphabetically ascending order", Index: 0, Filter: []model.SortOptionFilter{ searchstore.TitleSorter{}, }, } SortAlphaDesc = model.SortOption{ Name: "alpha-desc", DisplayName: "Alphabetically (Z–A)", Description: "Sort results in an alphabetically descending order", Index: 0, Filter: []model.SortOptionFilter{ searchstore.TitleSorter{Descending: true}, }, } )
Functions ¶
This section is empty.
Types ¶
type SearchService ¶
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, sqlstore db.DB, starService star.Service, dashboardService dashboards.DashboardService) *SearchService
func (*SearchService) RegisterSortOption ¶
func (s *SearchService) RegisterSortOption(option model.SortOption)
RegisterSortOption allows for hooking in more search options from other services.
func (*SearchService) SearchHandler ¶
func (*SearchService) SortOptions ¶
func (s *SearchService) SortOptions() []model.SortOption
Click to show internal directories.
Click to hide internal directories.