Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortAlphaAsc = SortOption{ Name: "alpha-asc", DisplayName: "Alphabetically (A–Z)", Description: "Sort results in an alphabetically ascending order", Index: 0, Filter: []SortOptionFilter{ searchstore.TitleSorter{}, }, } SortAlphaDesc = SortOption{ Name: "alpha-desc", DisplayName: "Alphabetically (Z–A)", Description: "Sort results in an alphabetically descending order", Index: 0, Filter: []SortOptionFilter{ searchstore.TitleSorter{Descending: true}, }, } )
Functions ¶
This section is empty.
Types ¶
type FindPersistedDashboardsQuery ¶
type FindPersistedDashboardsQuery struct { Title string OrgId int64 SignedInUser *models.SignedInUser IsStarred bool DashboardIds []int64 Type string FolderIds []int64 Tags []string Limit int64 Page int64 Permission models.PermissionType Sort SortOption Filters []interface{} Result HitList }
type Hit ¶
type Hit struct { ID int64 `json:"id"` UID string `json:"uid"` Title string `json:"title"` URI string `json:"uri"` URL string `json:"url"` Slug string `json:"slug"` Type HitType `json:"type"` Tags []string `json:"tags"` IsStarred bool `json:"isStarred"` FolderID int64 `json:"folderId,omitempty"` FolderUID string `json:"folderUid,omitempty"` FolderTitle string `json:"folderTitle,omitempty"` FolderURL string `json:"folderUrl,omitempty"` SortMeta int64 `json:"sortMeta"` SortMetaName string `json:"sortMetaName,omitempty"` }
type SearchService ¶
type SearchService struct { Bus bus.Bus Cfg *setting.Cfg // contains filtered or unexported fields }
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, bus bus.Bus) *SearchService
func (*SearchService) RegisterSortOption ¶
func (s *SearchService) RegisterSortOption(option SortOption)
RegisterSortOption allows for hooking in more search options from other services.
func (*SearchService) SortOptions ¶
func (s *SearchService) SortOptions() []SortOption
type SortOption ¶
type SortOptionFilter ¶
type SortOptionFilter interface { searchstore.FilterOrderBy }
Click to show internal directories.
Click to hide internal directories.