Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` }
type SearchService ¶
type SearchService struct { Bus bus.Bus `inject:""` Cfg *setting.Cfg `inject:""` // contains filtered or unexported fields }
func (*SearchService) Init ¶
func (s *SearchService) Init() error
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 SortOption struct { Name string DisplayName string Description string Filter []SortOptionFilter }
type SortOptionFilter ¶
type SortOptionFilter interface { searchstore.FilterOrderBy }
Click to show internal directories.
Click to hide internal directories.