Documentation ¶
Index ¶
- type Client
- type DomainData
- type GeolocateData
- type IpDomainRequest
- type IpDomainResult
- type IpGeolocateRequest
- type IpGeolocateResult
- type IpIntel
- func (e *IpIntel) Geolocate(ctx context.Context, input *IpGeolocateRequest) (*pangea.PangeaResponse[IpGeolocateResult], error)
- func (e *IpIntel) GetDomain(ctx context.Context, input *IpDomainRequest) (*pangea.PangeaResponse[IpDomainResult], error)
- func (e *IpIntel) IsProxy(ctx context.Context, input *IpProxyRequest) (*pangea.PangeaResponse[IpProxyResult], error)
- func (e *IpIntel) IsVPN(ctx context.Context, input *IpVPNRequest) (*pangea.PangeaResponse[IpVPNResult], error)
- func (e *IpIntel) Lookup(ctx context.Context, input *IpLookupRequest) (*pangea.PangeaResponse[IpLookupResult], error)
- func (e *IpIntel) Reputation(ctx context.Context, input *IpReputationRequest) (*pangea.PangeaResponse[IpReputationResult], error)
- type IpLookupRequest
- type IpLookupResult
- type IpProxyRequest
- type IpProxyResult
- type IpReputationRequest
- type IpReputationResult
- type IpVPNRequest
- type IpVPNResult
- type LookupData
- type ProxyData
- type ReputationData
- type VPNData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Lookup(ctx context.Context, input *IpLookupRequest) (*pangea.PangeaResponse[IpLookupResult], error) Reputation(ctx context.Context, input *IpReputationRequest) (*pangea.PangeaResponse[IpReputationResult], error) Geolocate(ctx context.Context, input *IpGeolocateRequest) (*pangea.PangeaResponse[IpGeolocateResult], error) GetDomain(ctx context.Context, input *IpDomainRequest) (*pangea.PangeaResponse[IpDomainResult], error) IsVPN(ctx context.Context, input *IpVPNRequest) (*pangea.PangeaResponse[IpVPNResult], error) IsProxy(ctx context.Context, input *IpProxyRequest) (*pangea.PangeaResponse[IpProxyResult], error) }
type DomainData ¶
type GeolocateData ¶
type IpDomainRequest ¶
type IpDomainResult ¶
type IpDomainResult struct { Data DomainData `json:"data"` Parameters interface{} `json:"parameters,omitempty"` RawData interface{} `json:"raw_data,omitempty"` }
type IpGeolocateRequest ¶
type IpGeolocateResult ¶
type IpGeolocateResult struct { Data GeolocateData `json:"data"` Parameters interface{} `json:"parameters,omitempty"` RawData interface{} `json:"raw_data,omitempty"` }
type IpIntel ¶
func (*IpIntel) Geolocate ¶
func (e *IpIntel) Geolocate(ctx context.Context, input *IpGeolocateRequest) (*pangea.PangeaResponse[IpGeolocateResult], error)
@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 ¶
func (e *IpIntel) GetDomain(ctx context.Context, input *IpDomainRequest) (*pangea.PangeaResponse[IpDomainResult], error)
@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 ¶
func (e *IpIntel) IsProxy(ctx context.Context, input *IpProxyRequest) (*pangea.PangeaResponse[IpProxyResult], error)
@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 ¶
func (e *IpIntel) IsVPN(ctx context.Context, input *IpVPNRequest) (*pangea.PangeaResponse[IpVPNResult], error)
@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 ¶
func (e *IpIntel) Lookup(ctx context.Context, input *IpLookupRequest) (*pangea.PangeaResponse[IpLookupResult], error)
@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 ¶
func (e *IpIntel) Reputation(ctx context.Context, input *IpReputationRequest) (*pangea.PangeaResponse[IpReputationResult], error)
@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 IpProxyResult ¶
type IpProxyResult struct { Data ProxyData `json:"data"` Parameters interface{} `json:"parameters,omitempty"` RawData interface{} `json:"raw_data,omitempty"` }
type IpReputationRequest ¶
type IpReputationResult ¶
type IpReputationResult struct { Data ReputationData `json:"data"` Parameters interface{} `json:"parameters,omitempty"` RawData interface{} `json:"raw_data,omitempty"` }
type IpVPNRequest ¶
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