ip_intel

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainData

type DomainData struct {
	DomainFound bool   `json:"domain_found"`
	Domain      string `json:"domain,omitempty"`
}

type GeolocateData

type GeolocateData struct {
	Country     string  `json:"country"`
	City        string  `json:"city"`
	Latitude    float32 `json:"latitude"`
	Longitude   float32 `json:"longitude"`
	PostalCode  string  `json:"postal_code"`
	CountryCode string  `json:"country_code"`
}

type IpDomainRequest

type IpDomainRequest struct {
	Ip       string `json:"ip"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

type IpDomainResult

type IpDomainResult struct {
	Data       DomainData  `json:"data"`
	Parameters interface{} `json:"parameters,omitempty"`
	RawData    interface{} `json:"raw_data,omitempty"`
}

type IpGeolocateRequest

type IpGeolocateRequest struct {
	Ip       string `json:"ip"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

type IpGeolocateResult

type IpGeolocateResult struct {
	Data       GeolocateData `json:"data"`
	Parameters interface{}   `json:"parameters,omitempty"`
	RawData    interface{}   `json:"raw_data,omitempty"`
}

type IpIntel

type IpIntel struct {
	*pangea.Client
}

func (*IpIntel) Geolocate

@summary Geolocate

@description Retrieve information about the location of an IP address.

@example

input := &ip_intel.IpGeolocateRequest{
	Ip: "93.231.182.110",
	Raw: true,
	Verbose: true,
	Provider: "digitalelement",
}

checkOutput, _, err := ipintel.geolocate(ctx, input)

func (*IpIntel) GetDomain

@summary Domain

@description Retrieve the domain name associated with an IP address.

@example

input := &ip_intel.IpDomainRequest{
	Ip: "93.231.182.110",
	Raw: true,
	Verbose: true,
	Provider: "digitalelement",
}

checkOutput, _, err := ipintel.GetDomain(ctx, input)

func (*IpIntel) IsProxy

@summary Proxy

@description Determine if an IP address is provided by a proxy service.

@example

input := &ip_intel.IpProxyRequest{
	Ip: "93.231.182.110",
	Raw: true,
	Verbose: true,
	Provider: "digitalelement",
}

checkOutput, _, err := ipintel.IsProxy(ctx, input)

func (*IpIntel) IsVPN

@summary VPN

@description Determine if an IP address is provided by a VPN service.

@example

input := &ip_intel.IpVPNRequest{
	Ip: "93.231.182.110",
	Raw: true,
	Verbose: true,
	Provider: "digitalelement",
}

checkOutput, _, err := ipintel.IsVPN(ctx, input)

func (*IpIntel) Lookup

@summary Reputation

@deprecated Use Reputation instead.

@description Retrieve a reputation score for an IP address from a provider, including an optional detailed report.

@example

input := &ip_intel.IpLookupRequest{
	Ip: "93.231.182.110",
	Raw: true,
	Verbose: true,
	Provider: "crowdstrike",
}

checkOutput, _, err := ipintel.Lookup(ctx, input)

func (*IpIntel) Reputation

@summary Reputation

@description Retrieve a reputation score for an IP address from a provider, including an optional detailed report.

@example

input := &ip_intel.IpReputationRequest{
	Ip: "93.231.182.110",
	Raw: true,
	Verbose: true,
	Provider: "crowdstrike",
}

checkOutput, _, err := ipintel.Reputation(ctx, input)

type IpLookupRequest

type IpLookupRequest struct {
	Ip       string `json:"ip"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

@deprecated Use IPReputationRequest

type IpLookupResult

type IpLookupResult struct {
	Data       LookupData  `json:"data"`
	Parameters interface{} `json:"parameters,omitempty"`
	RawData    interface{} `json:"raw_data,omitempty"`
}

@deprecated Use IpReputationResult

type IpProxyRequest

type IpProxyRequest struct {
	Ip       string `json:"ip"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

type IpProxyResult

type IpProxyResult struct {
	Data       ProxyData   `json:"data"`
	Parameters interface{} `json:"parameters,omitempty"`
	RawData    interface{} `json:"raw_data,omitempty"`
}

type IpReputationRequest

type IpReputationRequest struct {
	Ip       string `json:"ip"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

type IpReputationResult

type IpReputationResult struct {
	Data       ReputationData `json:"data"`
	Parameters interface{}    `json:"parameters,omitempty"`
	RawData    interface{}    `json:"raw_data,omitempty"`
}

type IpVPNRequest

type IpVPNRequest struct {
	Ip       string `json:"ip"`
	Verbose  bool   `json:"verbose,omitempty"`
	Raw      bool   `json:"raw,omitempty"`
	Provider string `json:"provider,omitempty"`
}

type IpVPNResult

type IpVPNResult struct {
	Data       VPNData     `json:"data"`
	Parameters interface{} `json:"parameters,omitempty"`
	RawData    interface{} `json:"raw_data,omitempty"`
}

type LookupData

type LookupData struct {
	Category []string `json:"category"`
	Score    int      `json:"score"`
	Verdict  string   `json:"verdict"`
}

@deprecated Use ReputationData

type ProxyData

type ProxyData struct {
	IsProxy bool `json:"is_proxy"`
}

type ReputationData

type ReputationData struct {
	Category []string `json:"category"`
	Score    int      `json:"score"`
	Verdict  string   `json:"verdict"`
}

type VPNData

type VPNData struct {
	IsVPN bool `json:"is_vpn"`
}

Jump to

Keyboard shortcuts

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