Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataProvider ¶
type DataProvider interface { SearchProvider RecentUrls(limit uint) (*SearchResult, error) }
type SearchProvider ¶
type SearchProvider interface {
SearchUrls(query string) (*SearchResult, error)
}
type SearchResult ¶ added in v0.3.0
type SearchResult struct { Urls []types.SearchableEntity Count uint }
type SqlSearchProvider ¶
type SqlSearchProvider struct {
// contains filtered or unexported fields
}
func NewSqlSearchProvider ¶
func NewSqlSearchProvider(ctx context.Context, conf *config.AppConfig) SqlSearchProvider
func (SqlSearchProvider) RecentUrls ¶
func (p SqlSearchProvider) RecentUrls(limit uint) (*SearchResult, error)
func (SqlSearchProvider) SearchUrls ¶
func (p SqlSearchProvider) SearchUrls(query string) (*SearchResult, error)
type URLQueryResult ¶
type URLQueryResult struct { Urls []types.UrlDbEntity Count uint }
Click to show internal directories.
Click to hide internal directories.