dns

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNS

func NewDNS() modules.Module

NewDNS generate a new Dns module (type modules.Module)

Types

type ConfigDNS

type ConfigDNS struct {
	RandomDNS bool `toml:"randomDNS"`
}

ConfigDNS : configuration model (from the toml file)

type DNS

type DNS struct {
	ConfigDNS ConfigDNS
	Config    config.ConfigToml
}

DNS "class"

func (*DNS) Author

func (D *DNS) Author() string

Author : Author getter

func (*DNS) DependsOn

func (D *DNS) DependsOn() events.EventType

DependsOn : Generate the dependencies requirement

func (*DNS) Name

func (D *DNS) Name() string

Name : name getter

func (*DNS) ParseConfig

func (D *DNS) ParseConfig() error

ParseConfig : Load the config from the config folder

func (*DNS) Run

func (D *DNS) Run(input communication.Input, resultChan chan communication.Result) (communication.Done, error)

Run : Main function of the module

func (*DNS) Version

func (D *DNS) Version() string

Version : Version getter

func (*DNS) WriteDb

func (D *DNS) WriteDb(result communication.Result, db models.Database, projectName string) error

WriteDb : Save data

type Result

type Result struct {
	Types map[string][]string
}

Result represent the parsed output

Jump to

Keyboard shortcuts

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