Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Type ResultType
Source string
Value string
Reference string
Error error
}
type Source ¶
type Source interface {
// Run takes a query as argument and a session object
// which contains the extractor for url, http client
// and other stuff.
Run(context.Context, string, *session.Session) <-chan Result
// Name returns the name of the source. It is preferred to use lower case names.
Name() string
// IsDefault returns true if the current source should be
// used as part of the default execution.
IsDefault() bool
// NeedsKey returns true if the source requires an API key
NeedsKey() bool
AddApiKeys([]string)
// Statistics returns the scrapping statistics for the source
Statistics() Statistics
}
Source is an interface inherited by each passive source
Click to show internal directories.
Click to hide internal directories.