Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Reputation(ctx context.Context, req *DomainReputationRequest) (*pangea.PangeaResponse[DomainReputationResult], error) ReputationBulk(ctx context.Context, req *DomainReputationBulkRequest) (*pangea.PangeaResponse[DomainReputationBulkResult], error) WhoIs(ctx context.Context, req *DomainWhoIsRequest) (*pangea.PangeaResponse[DomainWhoIsResult], error) // Base service methods pangea.BaseServicer }
type DomainReputationBulkRequest ¶ added in v3.5.0
type DomainReputationBulkRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest // The domain list to be looked up. Domains []string `json:"domains"` // Echo the API parameters in the response. Verbose *bool `json:"verbose,omitempty"` // Include raw data from this provider. Raw *bool `json:"raw,omitempty"` // Use reputation data from this provider. Provider string `json:"provider,omitempty"` }
type DomainReputationBulkResult ¶ added in v3.5.0
type DomainReputationBulkResult struct { // High-level normalized results sent // by the Pangea service Data map[string]ReputationData `json:"data"` // The parameters, which were passed in // the request, echoed back Parameters map[string]any `json:"parameters,omitempty"` // The raw data from the provider. // Each provider's data will have its own format RawData map[string]any `json:"raw_data,omitempty"` }
type DomainReputationRequest ¶
type DomainReputationRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest // The domain to be looked up. Domain string `json:"domain"` // Echo the API parameters in the response. Verbose *bool `json:"verbose,omitempty"` // Include raw data from this provider. Raw *bool `json:"raw,omitempty"` // Use reputation data from this provider. Provider string `json:"provider,omitempty"` }
type DomainReputationResult ¶
type DomainReputationResult struct { // High-level normalized results sent // by the Pangea service Data ReputationData `json:"data"` // The parameters, which were passed in // the request, echoed back Parameters interface{} `json:"parameters,omitempty"` // The raw data from the provider. // Each provider's data will have its own format RawData interface{} `json:"raw_data,omitempty"` }
type DomainWhoIsRequest ¶
type DomainWhoIsRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest // The domain to query. Domain string `json:"domain"` // Echo the API parameters in the response. Verbose *bool `json:"verbose,omitempty"` // Include raw data from this provider. Raw *bool `json:"raw,omitempty"` // Use whois data from this provider. Provider string `json:"provider,omitempty"` }
type DomainWhoIsResult ¶
type DomainWhoIsResult struct { Data WhoIsData `json:"data"` // The parameters, which were passed in // the request, echoed back Parameters map[string]any `json:"parameters,omitempty"` // The raw data from the provider. // Each provider's data will have its own format RawData map[string]any `json:"raw_data,omitempty"` }
type ReputationData ¶
type ReputationData struct { // The categories that apply to this // indicator as determined by the provider Category []string `json:"category"` // The score, given by the Pangea service, // for the indicator Score int `json:"score"` // The verdict, given by the Pangea service, // for the indicator Verdict string `json:"verdict"` }
type WhoIsData ¶
type WhoIsData struct { DomainName string `json:"domain_name"` DomainAvailability string `json:"domain_availability"` CreatedDate string `json:"created_date,omitempty"` UpdatedDate string `json:"updated_date,omitempty"` ExpiresDate string `json:"expires_date,omitempty"` HostNames []string `json:"host_names,omitempty"` IPs []string `json:"ips,omitempty"` RegistrarName string `json:"registrar_name,omitempty"` ContactEmail string `json:"contact_email,omitempty"` EstimatedDomainAge *int `json:"estimated_domain_age,omitempty"` RegistrantOrganization string `json:"registrant_organization,omitempty"` RegistrantCountry string `json:"registrant_country,omitempty"` }
Click to show internal directories.
Click to hide internal directories.