Documentation ¶
Index ¶
- Constants
- func Collect[T any](channel <-chan T) []T
- func GenerateIPV4FullNetworkSegmentAddresses(ipv4Gateway string) []string
- type Scanner
- func (own *Scanner) ScannIPV4(gateways ...string) (<-chan string, error)
- func (own *Scanner) ScannIPV4Port(port int, gateways ...string) (<-chan string, error)
- func (own *Scanner) Stop() error
- func (own *Scanner) WithConcurrency(concurrency int64) *Scanner
- func (own *Scanner) WithInterval(interval int64) *Scanner
- func (own *Scanner) WithTimeout(timeout int64) *Scanner
Constants ¶
View Source
const ( DEFAULT_SCANN_TIMEOUT = 10 // default scan timeout DEFAULT_SCANN_CONCURRENCY = 255 // default scan concurrency )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner defines the structure of the network scanner
func (*Scanner) ScannIPV4Port ¶
func (*Scanner) WithConcurrency ¶
func (*Scanner) WithInterval ¶
WithInterval sets the loop interval of scanning, and default not loop
func (*Scanner) WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.