Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoveryMode ¶
type DiscoveryMode uint8
const ( DNSMode DiscoveryMode = iota TLDMode DomainMode )
func (DiscoveryMode) String ¶
func (dm DiscoveryMode) String() string
type Source ¶
type Source interface {
// Run takes a query as argument and a session object
// which contains the extractor for domain, 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
SupportedDiscoveryModes() []DiscoveryMode
DiscoveryType() DiscoveryType
// 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.