Documentation
¶
Index ¶
- func GetCIDR(output []Response) []*net.IPNet
- func GetFormattedDataInCSV(output []Response) [][]string
- func GetFormattedDataInJson(output []Response) []byte
- func IdentifyInput(input string) interface{}
- func ResolveDomain(domain string, customresolvers ...string) []string
- type ASN
- type Client
- type Domain
- type IP
- type Org
- type Response
- type Result
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFormattedDataInCSV ¶
func GetFormattedDataInJson ¶
func IdentifyInput ¶
func IdentifyInput(input string) interface{}
func ResolveDomain ¶
Types ¶
type Response ¶
type Response struct {
FirstIp string
LastIp string
Input string
ASN int
Country string
Org string
}
To model http response from server
type Result ¶
type Result struct {
Timestamp string `json:"timestamp,omitempty" csv:"timestamp"`
Input string `json:"input" csv:"input"`
ASN string `json:"as_number" csv:"as_number"`
ASN_org string `json:"as_name" csv:"as_name"`
AS_country string `json:"as_country" csv:"as_country"`
AS_range []string `json:"as_range" csv:"as_range"`
}
To model json & csv formatted output
Click to show internal directories.
Click to hide internal directories.