modulepackage
0.0.0-20200708155206-6eb07d967485
Repository: https://github.com/hdm/inetdata-parsers.git
Documentation: pkg.go.dev
# README
Internet Data Processing Tools
Process internet data from various sources. Works with inetdata
Dependencies
Ubuntu 16.04
$ sudo apt-get install build-essential git make pigz p7zip-full libmtbl-dev mtbl-bin pkg-config
Golang
- Download the latest golang binary (1.8+) from https://golang.org/dl/
- Extract to the filesystem with:
# tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
Build
Configure your GO environment if you haven't done so, by adding the following to ~/.bashrc
$ echo 'export GOPATH=$HOME' >> ~/.bashrc
$ echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.bashrc
$ source ~/.bashrc
Clone this repository into the correct path:
$ mkdir -p $GOPATH/src/github.com/hdm/
$ cd $GOPATH/src/github.com/hdm/
$ git clone https://github.com/hdm/inetdata-parsers.git
Install
$ cd $GOPATH/src/github.com/hdm/inetdata-parsers/
$ make
Number of parallel builds: 3
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/mapi
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/mq
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-arin-xml2json
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-csvsplit
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-arin-org2cidrs
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-csv2mtbl
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-dns2mtbl
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-ct2csv
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-ct2hostnames
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-ct2hostnames-sync
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-ct2mtbl
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-csvrollup
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-lines2mtbl
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-hostnames2domains
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-json2mtbl
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-sonardnsv2-split
--> linux/amd64: github.com/fathom6/inetdata-parsers/cmd/inetdata-zone2csv
# Packages
No description provided by the author
# Functions
AddressesFromCIDR parses a CIDR and writes individual IPs to a channel.
IPv42UInt converts IPv4 addresses to unsigned integers.
IPv4Range2CIDRs converts a start and stop IPv4 range to a list of CIDRs.
IPv4UIntRange2CIDRs converts a range of insigned integers into IPv4 CIDRs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UInt2IPv4 converts unsigned integers to IPv4 addresses.
# Constants
No description provided by the author
No description provided by the author
# Variables
IPv4Masks is a precalculated lookup table for IPv4 CIDR.
IPv4MaskSizes is a precalculated lookup table for IPv4 CIDR mask sizes.
No description provided by the author
MatchIPv4 is a regular expression for validating IPv4 addresses.
MatchIPv6 is a regular expression for validating IPv6 addresses.
No description provided by the author
No description provided by the author
No description provided by the author