Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableWorkers = make(map[string]Info)
AvailableWorkers is the global variable that contains all the workers that have registered themselves as available.
Functions ¶
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 { 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.
Click to show internal directories.
Click to hide internal directories.