search

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BleveSearchProvider

type BleveSearchProvider struct {
	// contains filtered or unexported fields
}

func NewBleveSearchProvider

func NewBleveSearchProvider(ctx context.Context, conf *config.AppConfig) BleveSearchProvider

func (BleveSearchProvider) SearchBleve

func (p BleveSearchProvider) SearchBleve(query string) (*bleve.SearchResult, error)

func (BleveSearchProvider) SearchUrls

func (p BleveSearchProvider) SearchUrls(query string) (*URLQueryResult, error)

type DataProvider

type DataProvider interface {
	SearchProvider
	RecentUrls(limit uint) (*URLQueryResult, error)
}

type SearchProvider

type SearchProvider interface {
	SearchUrls(query string) (*URLQueryResult, error)
}

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) (*URLQueryResult, error)

func (SqlSearchProvider) SearchUrls

func (p SqlSearchProvider) SearchUrls(query string) (*URLQueryResult, error)

type URLQueryResult

type URLQueryResult struct {
	Urls  []types.UrlDbEntity
	Count uint
	Meta  *bleve.SearchResult
}

Jump to

Keyboard shortcuts

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