Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AvailablePrinters = make(map[string]Info)
AvailablePrinters is the global variable that contains all the workers printers that have registered themselves as available.
var AvailableWorkers = make(map[string]Info)
AvailableWorkers is the global variable that contains all the workers that have registered themselves as available.
Functions ¶
func RegisterPrinter ¶
RegisterPrinter is called by each worker in order to register itself as available.
func RegisterWorker ¶
RegisterWorker is called by each worker in order to register itself as available.
func RemoveWorker ¶
func RemoveWorker(name string)
RemoveWorker is called in case any worker needs to make itself unavailable ( due to unrecoverable errors ).
Types ¶
type HasAnalysisPrinter ¶
type Info ¶
Info represents the information that every worker gives about itself at the time of registration. Runner is the "object" on which the run method is going to be called.
type Input ¶
type Input struct { Target string Certificate certificate.Certificate CertificateChain *certificate.Chain Connection connection.Stored Scanid int64 DBHandle *database.DB Params interface{} }
Input holds all the info that is given as input to each scanner.