session

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASCIIArt

func ASCIIArt()

ASCIIArt simple visual printing of the logo in terminal. Ran immediately in main hence exported

func RunInTerminal

func RunInTerminal(fv FlagArguments)

RunInTerminal is the function that will handle the work when the program is called from terminal

func ZmqServer

func ZmqServer(port int)

ZmqServer for receiving the zmq packets over port 5515 by default. It first waits for a 1 to be able to acknowledge thatt it is ready to receive a job. It parses the data from json. This loops until it receives a kill from client. format for request:

{
	"TargetURL": "http://www.website.com/",
	"HardLimit": 1000,
	"DomainScope": "website",
	"NWorkers": 10,
}

param:

  • port as int

Types

type FlagArguments

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

FlagArguments is a copy from the main package, this should be modified in order not to repeat

Jump to

Keyboard shortcuts

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