parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package parser is a package for parsing massdns output format. Massdns writes output in a dig style format containing complete information about the resolved names.

Only a subset of information, more specifically Name and IP address is parsed from the output. It correctly handles CNAME record entries outputting the first name and the subsequent A records. NS records are ignored in the current implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile added in v1.1.0

func ParseFile(filename string, onResult OnResultFN) error

func ParseReader added in v1.1.0

func ParseReader(reader io.Reader, onResult OnResultFN) error

Parse parses the massdns output returning the found domain and ip pair to a onResult function.

Types

type OnResultFN added in v1.1.0

type OnResultFN func(domain string, ip []string) error

Jump to

Keyboard shortcuts

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