Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CyberRetrieveEngine ¶
type CyberRetrieveEngine struct { // Query is the query struct // that contains the different engines query to search Query *sources.Query // contains filtered or unexported fields }
CyberRetrieveEngine is the main struct for the engine
func NewCyberRetrieveEngine ¶
func NewCyberRetrieveEngine(query sources.Query, session sources.Session, engineOptions ...EngineOption) *CyberRetrieveEngine
NewCyberRetrieveEngine creates a new cyber retrieve engine
func (*CyberRetrieveEngine) RetrieveResult ¶
func (c *CyberRetrieveEngine) RetrieveResult() ([]sources.Result, error)
RetrieveResult this function return the result with []sources.Result slice type
func (*CyberRetrieveEngine) RetrieveWithChannel ¶
func (c *CyberRetrieveEngine) RetrieveWithChannel() (chan sources.Result, error)
RetrieveWithChannel this function return the result with chan Result type
type EngineMode ¶
type EngineMode uint8
const ( ModeQuake EngineMode = 1 << (8 - 1 - iota) ModeFofa ModeHunter )
type EngineOption ¶
type EngineOption func(c *CyberRetrieveEngine)
EngineOption is a type for setting options for the engine
func WithAutoGrammar ¶
func WithAutoGrammar() EngineOption
WithAutoGrammar this function is used to set the auto grammar option
func WithDeepSearch ¶
func WithDeepSearch() EngineOption
WithDeepSearch this function is used to set the deep search option
func WithFofaSearch ¶
func WithFofaSearch() EngineOption
WithFofaSearch this function is used to set the search mode to fofa
func WithHunterSearch ¶
func WithHunterSearch() EngineOption
func WithQuakeSearch ¶
func WithQuakeSearch() EngineOption
WithQuakeSearch this function is used to set the search mode to quake
Click to show internal directories.
Click to hide internal directories.