Documentation ¶
Index ¶
- Constants
- type Scanner
- func (own *Scanner) Close() error
- func (own *Scanner) LoopScannNetwork(gateways ...string) (<-chan string, error)
- func (own *Scanner) LoopScannPort(port int, gateways ...string) (<-chan string, error)
- func (own *Scanner) ScannNetwork(gateways ...string) ([]string, error)
- func (own *Scanner) ScannPort(port int, gateways ...string) ([]string, error)
- func (own *Scanner) WithConcurrency(concurrency int64) *Scanner
- func (own *Scanner) WithLoopInterval(interval int64) *Scanner
- func (own *Scanner) WithPrint() *Scanner
- func (own *Scanner) WithTimeout(timeout int64) *Scanner
Constants ¶
View Source
const ( DEFAULT_SCANN_TIMEOUT = 5 // 默认超时时间 DEFAULT_SCANN_CONCURRENCY = 255 // 默认扫描并发量 DEFAULT_SCANN_LOOP_INTERVAL = 60 // 默认循环扫描间隔 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner 定义网络扫描器的结构
func (*Scanner) LoopScannNetwork ¶
LoopScannNetwork 循环扫描网络
func (*Scanner) LoopScannPort ¶
LoopScannPort 循环扫描指定端口
func (*Scanner) ScannNetwork ¶
ScannNetwork 扫描网络
func (*Scanner) WithConcurrency ¶
WithConcurrency 设置扫描时的并发量
func (*Scanner) WithLoopInterval ¶
WithLoopInterval 设置循环扫描的间隔时间
func (*Scanner) WithTimeout ¶
WithTimeout 设置扫描超时时间
Click to show internal directories.
Click to hide internal directories.