output

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: BSD-2-Clause-Views Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finish

func Finish(format string)

Finish is called after a batch of results is processed. It may be called more than once, i.e. once per batch.

func OutputDnsAnswer

func OutputDnsAnswer(detail *result.DnsAnswer) string

func OutputDnsResponseDetail

func OutputDnsResponseDetail(resp *result.DnsResponse) string

func OutputDnsResponseFocus

func OutputDnsResponseFocus(resp *result.DnsResponse, typehint []string) string

func Process

func Process(format string, result any)

Process one incoming result

func Register

func Register(
	format string,
	supports func(string) bool,
	setup func(bool, []string),
	start func(),
	process func(any),
	finish func(),
)

Register a new output formatter with a name and th needed functions

func Setup

func Setup(format string, isverbose bool, options []string)

Setup is called once, before any results are processed

func Start

func Start(format string)

Start is called before a batch of results is processed. It may be called more than once, i.e. once per batch.

func Verify

func Verify(format string, outtype string) bool

Verify check is a particular formatter has been defined

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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