package
1.0.3
Repository: https://github.com/optimatiq/threatbite.git
Documentation: pkg.go.dev

# Functions

NewDirectoryDataSource returns iterator, which looks for all *.txt files in given directory or error.
NewEmptyDataSource returns empty data source.
NewIPNet returns a new IP/CIDR list build on top of radix tree (for CIDRS) and go map for IPs.
NewListDataSource first argument is a list of IPs or CIDRs.
NewURLDataSource returns iterator, which downloads lists from provided URLs and extract addresses.

# Variables

ErrInvalidData source is available or data provided in the source were not valid IPv4, IPv6 or CIDR.
ErrNoData no more date in iterator, means that we finished iterating.

# Structs

DirectoryDataSource stores current state (counters, files, scanners) of this source.
EmptyDataSource as the name suggest, this data source contains no data.
IPNet container struct for IP/CIDR operations.
ListDataSource stores current state (counters) of this source.
URLDataSource stores current state (counters, URLs, scanners) of this source.

# Interfaces

DataSource defines method for accessing stream of addresses.