Documentation ¶
Overview ¶
Package output contains utilities for processing results from zgrab2 scanners for eventual output and consumption by ztag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NullProcessCallback ¶
NullProcessCallback is the default ProcessCallback; it just returns nil.
Types ¶
type ProcessCallback ¶
ProcessCallback is called for each element in a struct; if it returns a non-nil value, that value will be used and further processing on that element will be skipped.
type Processor ¶
type Processor struct { // Callback is a function that gets called on each element being // processed. If the callback returns a non-nil value, that value is // returned immediately instead of doing any further processing on // the element. Callback ProcessCallback // Verbose determines whether `zgrab:"debug"` fields will be // included in the output. Verbose bool // Path is the current path being processed, from the root element. // Used for debugging purposes only. // If a panic occurs, the path will point to the element where the // element that caused the problem. Path []pathEntry }
Processor holds the state for a process run. A given processor should only be used on a single thread.
func NewProcessor ¶
func NewProcessor() *Processor
NewProcessor returns a new Processor instance with the default settings.
Click to show internal directories.
Click to hide internal directories.