Documentation ¶
Overview ¶
Package search provides search interface and functionality
Index ¶
- Variables
- func DoRequest(ctx context.Context, req *http.Request, f func(*http.Response, error) error) error
- func ParseGoto(g string) int
- func ParsePage(p string) int
- func ParseTimeout(t string) time.Duration
- func PrintResults(query Query, err error)
- func Register(name string, provider interface{}) error
- func Searchers() []string
- type Query
- type Result
- type Results
- type Searcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger is the logger Logger *log.Logger )
Functions ¶
func ParseTimeout ¶ added in v1.5.1
ParseTimeout parses timeout from a given string
func PrintResults ¶ added in v1.5.0
PrintResults prints the given search results
Types ¶
type Query ¶ added in v1.5.0
type Query struct { Provider string Keyword string Page int Goto int Timeout time.Duration Start time.Time Elapsed time.Duration Results Results }
Query represents a search query
Click to show internal directories.
Click to hide internal directories.