search

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 7 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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