result

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostResult

type HostResult struct {
	Host  string
	IP    string
	Ports []*port.Port
}

type Result

type Result struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Result of the scan

func NewResult

func NewResult() *Result

NewResult structure

func (*Result) AddDiscoveryIp

func (r *Result) AddDiscoveryIp(ip string)

func (*Result) AddIp

func (r *Result) AddIp(ip string)

AddIp adds an ip to the results

func (*Result) AddPort

func (r *Result) AddPort(ip string, p *port.Port)

AddPort to a specific ip

func (*Result) AddSkipped

func (r *Result) AddSkipped(ip string)

AddSkipped adds an ip to the skipped list

func (*Result) GetDiscoveryIPs

func (r *Result) GetDiscoveryIPs() chan string

func (*Result) GetIPs

func (r *Result) GetIPs() chan string

AddPort to a specific ip

func (*Result) GetIPsPorts

func (r *Result) GetIPsPorts() chan *HostResult

GetIpsPorts returns the ips and ports

func (*Result) GetPortCount

func (r *Result) GetPortCount(host string) int

GetPortCount returns the number of ports discovered for an ip

func (*Result) HasDiscoveryIPS

func (r *Result) HasDiscoveryIPS() bool

func (*Result) HasIP

func (r *Result) HasIP(ip string) bool

HasIP checks if an ip has been seen

func (*Result) HasIPS

func (r *Result) HasIPS() bool

func (*Result) HasIPsPorts

func (r *Result) HasIPsPorts() bool

func (*Result) HasSkipped

func (r *Result) HasSkipped(ip string) bool

HasSkipped checks if an ip has been skipped

func (*Result) IPHasPort

func (r *Result) IPHasPort(ip string, p *port.Port) bool

IPHasPort checks if an ip has a specific port

func (*Result) IsEmpty

func (r *Result) IsEmpty() bool

func (*Result) Len

func (r *Result) Len() int

func (*Result) SetDiscoveryIPS

func (r *Result) SetDiscoveryIPS(ips chan string)

func (*Result) SetPorts

func (r *Result) SetPorts(ip string, ports []*port.Port)

SetPorts for a specific ip

Jump to

Keyboard shortcuts

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