Documentation
¶
Overview ¶
Package ipintel is a simple Go wrapper for the getipintel.net proxy detection API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckType ¶
type CheckType string
CheckType represents the type of check used to determine the proxy score.
const ( // Static uses static lists to determine if the IP is a proxy. // The returned score is either 0 or 1. Static CheckType = "m" // Dynamic uses static lists and machine learning to determine if the IP is // a proxy. The returned score is a floating number between 0 and 1. Dynamic CheckType = "b" )
type Client ¶
type Client struct {
// Your email address
Email string
// Scheme used for the API requests ("http" or "https")
Scheme string
// Type of proxy check to use (Static/Dynamic)
Check CheckType
// Maximum time to wait when a query is being throttled.
// If set to zero calls to GetProxyScore() will block until
// there is enough capacity in the rate limiter bucket.
MaxWait time.Duration
}
Client is a struct used to make API queries.