worker.__main__

Module Contents

worker.__main__.logger[source]
worker.__main__.choose_backend(backend)[source]
Resolves scanner name string to implementation
Parameters
  • backend (str) – Name of the backend to load, either one of the predefined implementations or the name of a module

  • load (to) –

  • (module – ClassName syntax or default of module:Scanner)

Returns

Scanner class of the selected implementation

Return type

(Class)

Raises

(Exception) – If backend is not found

worker.__main__.main(log, client_log, redis_addr, queue, backend, tasks, download_limit, scan_limit, api_key, testing, log_format, scan_time_requirement, daily_rate_limit, hourly_rate_limit, minutely_rate_limit, secondly_rate_limit, allow_key_over_http)[source]
Entrypoint for the worker driver