ipaddress

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

This section is empty.

Functions

func QueryIp

func QueryIp(client vtsdk.Client, ip string, response *Response) (*resty.Response, error)

Types

type Attributes

type Attributes struct {
	RegionalInternetRegistery string                                   `json:"regional_internet_registery"`
	Jarm                      string                                   `json:"jarm"`
	Network                   string                                   `json:"network"`
	LastHttpsCertificateDate  int                                      `json:"last_https_certificate_date"`
	Tags                      []string                                 `json:"tags"`
	CrowdsourcedContext       []CrowdsourcedContext                    `json:"crowdsourced_context"`
	Country                   string                                   `json:"country"`
	AsOwner                   string                                   `json:"as_owner"`
	LastAnalysisStats         responses.LastAnalysisStats              `json:"last_analysis_stats"`
	Asn                       int                                      `json:"asn"`
	WhoIsDate                 int                                      `json:"who_is_date"`
	LastAnalysisResults       map[string]responses.LastAnalysisResults `json:"last_analysis_results"`
	Reputation                int                                      `json:"reputation"`
	LastModificationDate      int                                      `json:"last_modification_date"`
	TotalVotes                responses.LastAnalysisStats              `json:"total_votes"`
	LastHttpsCertificate      responses.LastHttpsCertificate           `json:"last_https_certificate"`
	Continent                 string                                   `json:"continent"`
	Whois                     string                                   `json:"whois"`
}

type CrowdsourcedContext

type CrowdsourcedContext struct {
	Source    string `json:"source"`
	Title     string `json:"title"`
	Detail    string `json:"detail"`
	Severity  string `json:"severity"`
	Timestamp int    `json:"timestamp"`
}

type Data

type Data struct {
	Attributes Attributes        `json:"attributes"`
	Type       string            `json:"type"`
	Id         string            `json:"id"`
	Links      map[string]string `json:"links"`
}

type Response

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

func (Response) String

func (r Response) String() string

func (Response) Table

func (r Response) Table(t table.Writer)

func (Response) ThreatLevel

func (r Response) ThreatLevel() string

Jump to

Keyboard shortcuts

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