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 *UrlReputationRequest) (*pangea.PangeaResponse[UrlReputationResult], error) ReputationBulk(ctx context.Context, req *UrlReputationBulkRequest) (*pangea.PangeaResponse[UrlReputationBulkResult], error) // Base service methods pangea.BaseServicer }
type ReputationData ¶
type UrlReputationBulkRequest ¶ added in v3.5.0
type UrlReputationBulkRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest // The URL to be looked up Urls []string `json:"urls"` // 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 UrlReputationBulkResult ¶ added in v3.5.0
type UrlReputationBulkResult 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 UrlReputationRequest ¶
type UrlReputationResult ¶
type UrlReputationResult struct { Data ReputationData `json:"data"` Parameters interface{} `json:"parameters,omitempty"` RawData interface{} `json:"raw_data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.