Documentation
¶
Index ¶
- func GetCIDR(output []*Response) ([]*net.IPNet, error)
- func GetFormattedDataInCSV(output []*Response) ([][]string, error)
- func GetFormattedDataInJson(output []*Response) ([]byte, error)
- func ResolveDomain(domain string, customresolvers ...string) ([]string, error)
- type Client
- type InputType
- type Response
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFormattedDataInCSV ¶
func GetFormattedDataInJson ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
var DefaultClient *Client
func (Client) GetDataWithCustomInput ¶ added in v1.0.3
type Response ¶
type Response struct {
FirstIp string `json:"first_ip,omitempty"`
LastIp string `json:"last_ip,omitempty"`
Input string `json:"-"` // added by client
ASN int `json:"asn,omitempty"`
Country string `json:"country,omitempty"`
Org string `json:"org,omitempty"`
}
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.