domain

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DomainReportUrlPath = "/api/v3/domains/%s"

Functions

func Query

func Query(client vtsdk.Client, domain string, response *Response) (*resty.Response, error)

Types

type Attributes

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 Categories

type Categories map[string]string

type Data

type Data struct {
	Attributes Attributes `json:"attributes"`
	Id         string     `json:"id"`
}

type Error

type Error struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type Favicon

type Favicon struct {
	Dhash  string `json:"dhash"`
	RawMd5 string `json:"raw_md5"`
}

type LastDnsRecords

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"`
}
type Links struct {
	// contains filtered or unexported fields
}

type PopularityRank

type PopularityRank struct {
	Rank      int `json:"rank"`
	Timestamp int `json:"timestamp"`
}

type Response

type Response struct {
	Data  Data  `json:"data,omitempty"`
	Error Error `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL