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 ¶
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.