search

package
v0.0.0-...-2d830b2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(results chan *Result)

func Match

func Match(matcher Matcher, feed *Feed, searchTerm string, results chan<- *Result)

func Register

func Register(feedType string, matcher Matcher)

func Run

func Run(searchTerm string)

Types

type Feed

type Feed struct {
	Name string `json:"site"`
	URI  string `json:"link"`
	Type string `json:"type"`
}

func RetrieveFeeds

func RetrieveFeeds() ([]*Feed, error)

type Matcher

type Matcher interface {
	Search(feed *Feed, searchTerm string) ([]*Result, error)
}

type Result

type Result struct {
	Field   string
	Content string
}

Jump to

Keyboard shortcuts

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