state

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 3

Variables

This section is empty.

Functions

func BuildSignature

func BuildSignature(targetTokens []string) string

func Remove

func Remove(path string) error

func Save

func Save(path string, state Scan) error

Types

type Scan

type Scan struct {
	Version          int       `json:"version"`
	Signature        string    `json:"signature"`
	NextIPIndex      uint64    `json:"next_ip_index"`
	TotalIPs         uint64    `json:"total_ips"`
	TotalEndpoints   uint64    `json:"total_endpoints"`
	ScannedEndpoints uint64    `json:"scanned_endpoints"`
	OpenEndpoints    uint64    `json:"open_endpoints"`
	ProbedEndpoints  uint64    `json:"probed_endpoints"`
	ValidEndpoints   uint64    `json:"valid_endpoints"`
	OutputFile       string    `json:"output_file,omitempty"`
	Ports            []uint16  `json:"ports,omitempty"`
	Results          []string  `json:"results"`
	UpdatedAt        time.Time `json:"updated_at"`
}

func Load

func Load(path string) (Scan, error)

func Resolve

func Resolve(cfg config.Config, signature string, ports []uint16, totalIPs, totalEndpoints uint64) (Scan, string, error)

Jump to

Keyboard shortcuts

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