models

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShuffleServices

func ShuffleServices(services []Service)

Types

type NoDataError

type NoDataError struct {
	Message string
}

func (NoDataError) Error

func (e NoDataError) Error() string

type ScanMap

type ScanMap struct {
	Hosts    []net.IP  `json:"hosts"`
	Services []Service `json:"services"`
	IpFile   string    `json:"ip_file"`
	PortFile string    `json:"port_file"`
}

type Service

type Service struct {
	Name          string  `json:"name"`
	Port          int     `json:"port"`
	Protocol      string  `json:"protocol"`
	OpenFrequency float32 `json:"open_frequency"`
}

func GetServicesFromList

func GetServicesFromList(ports []int, tcp bool, udp bool) []Service

func GetTopServices

func GetTopServices(number int, tcp bool, udp bool, sortByFrequency bool) []Service

func (*Service) String

func (s *Service) String() string

Jump to

Keyboard shortcuts

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