Discover Packages
github.com/devops-works/scan-exporter
config
package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Jan 22, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Conf struct {
Timeout int `yaml:"timeout"`
Limit int `yaml:"limit"`
Targets []Target `yaml:"targets"`
}
Conf holds configuration
New reads config from file and returns a config struct
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.