space_engine

package
v0.0.0-...-5e783f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 CollectionConfig struct {
	Username    string
	ApiKey      string
	Mail        string
	DelayTime   int
	PageSize    int
	MaxSize     int
	QueryEngine func(ctx context.Context, key, mail string, delay, size, maxsize int, query string) (chan *commtype.CollectionResponse, error)
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL