package
2.0.0-alpha3+incompatible
Repository: https://github.com/nray-scanner/nray.git
Documentation: pkg.go.dev

# Functions

ApplyDefaultConfig initializes top level configuration and some options that fit best here.
ApplyDefaultEventJSONFileConfig is called when the JSONFileEventHandler is initialized.
ApplyDefaultEventTerminalConfig is called when the TerminalEventHandler is initialized.
ApplyDefaultScannerConfig is called when the node applies the configuration sent by the server in order to have defaults in place.
ApplyDefaultScannerTCPConfig is called when the TCP scanner is initialized.
ApplyDefaultScannerUDPConfig is called when the UDP scanner is initialized.
ApplyDefaultTargetgeneratorStandardConfig sets default values for standard target generator.
CheckError provides general error handling.
DbgGetGID returns the number of the goroutine calling this function.
JSONtoProtoValue converts any json to a protobuf value.
MayBeFQDN returns true if there are no slashes or colons in the string.

# Constants

RegexIPv4 matches on an IPv4 address.
RegexNetIPv4 matches on an CIDR IPv4 network specification.
RegexPortRange matches strings of the form "{number}-{number}" where number are 1 to 5 digits.
RegexThousandNumber matches all numbers between 1000 and 9999 plus 0000.
RegexTopPorts matches strings like "top25" or "Top2500".

# Variables

Ipv4NetRegexpr is the above IPv4 CIDR regex, already conveniently compiled.
Ipv4Regexpr is the above IPv4 regex, already conveniently compiled.

# Structs

Formatter - logrus formatter, implements logrus.Formatter.