iohandlers

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInputHandler

type FileInputHandler struct {
	// contains filtered or unexported fields
}

func NewFileInputHandler

func NewFileInputHandler(filepath string) *FileInputHandler

func (*FileInputHandler) FeedChannel

func (h *FileInputHandler) FeedChannel(in chan<- string, wg *sync.WaitGroup) error

type FileOutputHandler

type FileOutputHandler struct {
	// contains filtered or unexported fields
}

func NewFileOutputHandler

func NewFileOutputHandler(filepath string) *FileOutputHandler

func (*FileOutputHandler) WriteResults

func (h *FileOutputHandler) WriteResults(results <-chan string, wg *sync.WaitGroup) error

type StatusHandler

type StatusHandler struct {
	// contains filtered or unexported fields
}

func NewStatusHandler

func NewStatusHandler(filePath string) *StatusHandler

func (*StatusHandler) LogPeriodicUpdates

func (h *StatusHandler) LogPeriodicUpdates(statusChan <-chan zdns.Status, wg *sync.WaitGroup) error

LogPeriodicUpdates prints a per-second update to the user scan progress and per-status statistics

type StreamInputHandler

type StreamInputHandler struct {
	// contains filtered or unexported fields
}

func NewStreamInputHandler

func NewStreamInputHandler(r io.Reader) *StreamInputHandler

func (*StreamInputHandler) FeedChannel

func (h *StreamInputHandler) FeedChannel(in chan<- string, wg *sync.WaitGroup) error

type StreamOutputHandler

type StreamOutputHandler struct {
	// contains filtered or unexported fields
}

func NewStreamOutputHandler

func NewStreamOutputHandler(w io.Writer) *StreamOutputHandler

func (*StreamOutputHandler) WriteResults

func (h *StreamOutputHandler) WriteResults(results <-chan string, wg *sync.WaitGroup) error

type StringSliceInputHandler

type StringSliceInputHandler struct {
	Names []string
}

StringSliceInputHandler Feeds a channel with the strings in the slice.

func NewStringSliceInputHandler

func NewStringSliceInputHandler(domains []string) *StringSliceInputHandler

func (*StringSliceInputHandler) FeedChannel

func (h *StringSliceInputHandler) FeedChannel(in chan<- string, wg *sync.WaitGroup) error

Jump to

Keyboard shortcuts

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