Documentation ¶
Index ¶
- func Query(ctx context.Context, query string, config ...CollectionConfigOpt) (chan *commtype.CollectionResponse, error)
- type CollectionConfig
- type CollectionConfigOpt
- func WithApiKey(apikey string) CollectionConfigOpt
- func WithDelayTime(delay int) CollectionConfigOpt
- func WithFofaQueryEngine() CollectionConfigOpt
- func WithHunterQueryEngine() CollectionConfigOpt
- func WithMail(mail string) CollectionConfigOpt
- func WithMaxSize(size int) CollectionConfigOpt
- func WithOtherEngine(...) CollectionConfigOpt
- func WithPageSize(size int) CollectionConfigOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Query ¶
func Query(ctx context.Context, query string, config ...CollectionConfigOpt) (chan *commtype.CollectionResponse, error)
Types ¶
type CollectionConfig ¶
type CollectionConfigOpt ¶
type CollectionConfigOpt func(config *CollectionConfig)
func WithApiKey ¶
func WithApiKey(apikey string) CollectionConfigOpt
func WithDelayTime ¶
func WithDelayTime(delay int) CollectionConfigOpt
func WithFofaQueryEngine ¶
func WithFofaQueryEngine() CollectionConfigOpt
func WithHunterQueryEngine ¶
func WithHunterQueryEngine() CollectionConfigOpt
func WithMail ¶
func WithMail(mail string) CollectionConfigOpt
func WithMaxSize ¶
func WithMaxSize(size int) CollectionConfigOpt
func WithOtherEngine ¶
func WithOtherEngine(engine func(ctx context.Context, key, mail string, delay, size, maxsize int, query string) (chan *commtype.CollectionResponse, error)) CollectionConfigOpt
func WithPageSize ¶
func WithPageSize(size int) CollectionConfigOpt
Click to show internal directories.
Click to hide internal directories.