config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 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 Conf

type Conf struct {
	Timeout int      `yaml:"timeout"`
	Limit   int      `yaml:"limit"`
	Targets []Target `yaml:"targets"`
}

Conf holds configuration

func New

func New(f string) (*Conf, error)

New reads config from file and returns a config struct

type Target added in v1.0.0

type Target struct {
	IP    string   `yaml:"ip"`
	Name  string   `yaml:"name"`
	Range string   `yaml:"range"`
	TCP   protocol `yaml:"tcp"`
	ICMP  protocol `yaml:"icmp"`
}

Target holds an IP and a range of ports to scan

Jump to

Keyboard shortcuts

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