result

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	sync.RWMutex
	IPPorts map[string]map[int]struct{}
	IPS     map[string]struct{}
}

Result of the scan

func NewResult

func NewResult() *Result

NewResult structure

func (*Result) AddPort

func (r *Result) AddPort(k string, v int)

AddPort to a specific ip

func (*Result) HasIP

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

HasIP checks if an ip has been seen

func (*Result) IPHasPort

func (r *Result) IPHasPort(k string, v int) bool

IPHasPort checks if an ip has a specific port

func (*Result) SetIP

func (r *Result) SetIP(ip string)

SetIP as seen

func (*Result) SetPorts

func (r *Result) SetPorts(k string, v map[int]struct{})

SetPorts for a specific ip

Jump to

Keyboard shortcuts

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