core

package
v0.0.0-...-08b82ab Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailValid

type EmailValid struct {
	Email string
	Valid bool
}

type JobParam

type JobParam struct {
	TimeOut     int
	TargetURL   string
	HardLimit   int
	DomainScope string
	NWorkers    int
	CheckEmails bool
}

JobParam contains the job parameters to be sent to the core

type JsonOutput

type JsonOutput struct {
	TargetURL       string
	HardLimit       int
	NmbWorkers      int
	DomainScope     string
	NmbScraped      int
	NmbUniqueEmails int
	UniqueEmails    []string
	ValidEmails     []EmailValid
	NmbEmails       int
	EmailList       []emailSource
	TimeStarted     time.Time
	TimeFinished    time.Time
	TimeDeltaMS     int64
}

JsonOutput is a struct that will contain the output that will be formatted in json before being sent out or saved

func LaunchJob

func LaunchJob(p JobParam) JsonOutput

LaunchJob is the main subfunction that actually starts the job. This functions takes a pointer of the input parameters either given by the zmq server or the command line interpreter. This function just starts the producer and waits for its results.

param : - fv pointer - return output as JsonOutput struct

Jump to

Keyboard shortcuts

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