check

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryCheck

func QueryCheck(client abuseipdbsdk.Client, ip string, response *Response) (*resty.Response, error)

Types

type Data

type Data struct {
	IpAddress            string    `json:"ipAddress"`
	IsPublic             bool      `json:"isPublic"`
	IpVersion            int       `json:"IpVersion"`
	IsWhitelisted        bool      `json:"isWhitelisted"`
	AbuseConfidenceScore int       `json:"abuseConfidenceScore"`
	CountryCode          string    `json:"countryCode"`
	CountryName          string    `json:"countryName"`
	UsageType            string    `json:"usageType"`
	Isp                  string    `json:"isp"`
	Domain               string    `json:"domain"`
	Hostnames            Hostnames `json:"hostnames"`
	TotalReports         int       `json:"toalReports"`
	NumDistinctUsers     int       `json:"numDistinctUsers"`
	LastReportedAt       string    `json:"lastReportedAt"`
	Reports              []Reports `json:"reports"`
}

type Hostnames

type Hostnames []string

func (Hostnames) String

func (hostnames Hostnames) String() string

type Reports

type Reports struct {
	ReportedAt          string `json:"reportedAt"`
	Comment             string `json:"comment"`
	Categories          []int  `json:"categories"`
	ReporterId          int    `json:"reporterId"`
	ReporterCountryCode string `json:"reporterCountryCode"`
	ReporterCountryName string `json:"reporterCountryName"`
}

type Response

type Response struct {
	Data Data `json:"data"`
}

Jump to

Keyboard shortcuts

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