modules

package
v0.0.0-...-3a6820e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	Name() string
	Version() string
	Author() string
	DependsOn() events.EventType
	Run(communication.Input, chan communication.Result) (communication.Done, error)
	ParseConfig() error
	WriteDb(result communication.Result, db models.Database, projectName string) error
}

Module is the minimal interface needed for one module The Run function is the "main" function of each module ParseConfig will be run in the init system The WriteDb is called each time a new result is sent in the "communication.Result chan" DependsOn defines which "events" the module want to subscribe. It might be a new IP, domains, port...

type Report

type Report interface {
	Name() string
	Generate(name string) error
}

Report is the minimal interface for one reporting module The Generate function is the "main" function of the report module

Directories

Path Synopsis
recon
dns

Jump to

Keyboard shortcuts

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