-
Notifications
You must be signed in to change notification settings - Fork 0
/
response.go
73 lines (63 loc) · 2.45 KB
/
response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package domain
import (
"github.com/christianrang/hackerfinder/pkg/vtsdk/responses"
)
type Response struct {
Data Data `json:"data,omitempty"`
Error Error `json:"error,omitempty"`
}
type Data struct {
Attributes Attributes `json:"attributes"`
Id string `json:"id"`
}
type Error struct {
Code string `json:"code"`
Message string `json:"message"`
}
type Attributes struct {
Categories Categories `json:"categories"`
CreationDate int64 `json:"creation_date"`
Favicon Favicon `json:"favicon"`
LastAnalysisResults responses.LastAnalysisResults `json:"last_analysis_results"`
LastAnalysisStats responses.LastAnalysisStats `json:"last_analysis_stats"`
LastDnsRecords []LastDnsRecords `json:"last_dns_records"`
LastDnsRecordsDate int `json:"last_dns_records_date"`
LastHttpsCertificate responses.LastHttpsCertificate `json:"last_https_certificate"`
LastModificationDate int `json:"last_modification_date"`
LastUpdateDate int `json:"last_update_date"`
PopularityRank map[string]PopularityRank `json:"popularity_rank"`
Registrar string `json:"registrar"`
Reputation int `json:"reputation"`
Tags []string `json:"tags"`
TotalVotes responses.LastAnalysisStats `json:"total_votes"`
WhoIs string `json:"whois"`
WhoIsDate int `json:"whois_date"`
Links Links `json:"links"`
Type string `json:"type"`
}
type Links struct {
self string
}
type PopularityRank struct {
Rank int `json:"rank"`
Timestamp int `json:"timestamp"`
}
type Categories map[string]string
type Favicon struct {
Dhash string `json:"dhash"`
RawMd5 string `json:"raw_md5"`
}
type LastDnsRecords struct {
Expire int `json:"expire"`
Flag int `json:"flag"`
Minimum int `json:"minimum"`
Priority int `json:"priority"`
Refresh int `json:"refresh"`
RName string `json:"rname"`
Retry int `json:"retry"`
Serial int `json:"serial"`
Tag string `json:"tag"`
TTL int `json:"ttl"`
Type string `json:"type"`
Value string `json:"value"`
}