portscan

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package portscan package portscan

Package portscan package portscan

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExcludePort

type ExcludePort struct {
	StartPort int64
	EndPort   int64
}

type ExcludePortArr

type ExcludePortArr []ExcludePort

func (ExcludePortArr) IsExcluded

func (e ExcludePortArr) IsExcluded(port string) bool

type PortScan

type PortScan struct {
	ExcludePorts []ExcludePort
}

func NewPortScan

func NewPortScan() *PortScan

func (*PortScan) GetPortIsUsed

func (p *PortScan) GetPortIsUsed(port string) bool

func (*PortScan) GetRandomPort

func (p *PortScan) GetRandomPort() string

func (*PortScan) Scan

func (p *PortScan) Scan() (ExcludePortArr, error)

Jump to

Keyboard shortcuts

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