Documentation ¶
Index ¶
- func ASNInfoFullRequest(ctx context.Context, device *andutils.Device, apiKey, language, asn string, ...) (*http.Request, error)
- func DefaultHeaders(device *andutils.Device) http.Header
- func DefaultLanguage(in string) string
- func DefaultParameters(apiKey, language string) url.Values
- func DefaultUserAgent(in string) string
- func ErrorParser(resp *http.Response, fallbackErr error) error
- func IPGeolocationFullRequest(ctx context.Context, device *andutils.Device, apiKey, language, ip string) (*http.Request, error)
- func IPGeolocationRequest(ctx context.Context, device *andutils.Device, apiKey, language, ip string) (*http.Request, error)
- func IPGeolocationWithConfidenceRequest(ctx context.Context, device *andutils.Device, apiKey, language, ip string) (*http.Request, error)
- func IPStatsPerCountryRequest(ctx context.Context, device *andutils.Device, apiKey, language string) (*http.Request, error)
- func NetworkByIPRequest(ctx context.Context, device *andutils.Device, ...) (*http.Request, error)
- func ObjectParser[T any](obj T, resp *http.Response) (*T, error)
- func ReverseGeocodeRequest(ctx context.Context, device *andutils.Device, apiKey, language string, ...) (*http.Request, error)
- func ReverseGeocodeWithTimezoneRequest(ctx context.Context, device *andutils.Device, apiKey, language string, ...) (*http.Request, error)
- func SubmitLocationRequest(ctx context.Context, device *andutils.Device, apiKey, language, uuid string, ...) (*http.Request, error)
- func SubmitResultParser(resp *http.Response) error
- func UserAgentInfoRequest(ctx context.Context, device *andutils.Device, ...) (*http.Request, error)
- func UserRiskRequest(ctx context.Context, device *andutils.Device, ...) (*http.Request, error)
- func ValidatePhoneNumberByIPRequest(ctx context.Context, device *andutils.Device, ...) (*http.Request, error)
- func ValidatePhoneNumberRequest(ctx context.Context, device *andutils.Device, ...) (*http.Request, error)
- func VerifyEmailAddressRequest(ctx context.Context, device *andutils.Device, ...) (*http.Request, error)
- type Carrier
- type ConfidenceArea
- type Continent
- type Country
- type CountryStats
- type Currency
- type EmailVerification
- type ErrorResponse
- type HazardReport
- type IPGeolocation
- type IPStatsPerCountry
- type ISOAdminLanguage
- type Locality
- type LocalityInfo
- type Location
- type Network
- type PhoneValidation
- type ReverseGeolocation
- type TimeZone
- type UserAgentInfo
- type UserRisk
- type WBNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASNInfoFullRequest ¶
func DefaultLanguage ¶
func DefaultParameters ¶
func DefaultUserAgent ¶
func IPGeolocationRequest ¶
func NetworkByIPRequest ¶
func ObjectParser ¶ added in v0.0.4
func ReverseGeocodeRequest ¶
func SubmitLocationRequest ¶
func SubmitResultParser ¶
func UserAgentInfoRequest ¶
func UserRiskRequest ¶
Types ¶
type Carrier ¶
type Carrier struct { Asn string `json:"asn"` AsnNumeric int64 `json:"asnNumeric"` Organisation string `json:"organisation"` Name string `json:"name"` Registry string `json:"registry"` RegisteredCountry string `json:"registeredCountry"` RegisteredCountryName string `json:"registeredCountryName"` RegistrationDate *string `json:"registrationDate,omitempty"` RegistrationLastChange *string `json:"registrationLastChange,omitempty"` TotalIpv4Addresses int64 `json:"totalIpv4Addresses"` TotalIpv4Prefixes *int64 `json:"totalIpv4Prefixes,omitempty"` TotalIpv4BogonPrefixes *int64 `json:"totalIpv4BogonPrefixes,omitempty"` Rank int64 `json:"rank"` RankText string `json:"rankText"` TotalReceivingFrom int64 `json:"totalReceivingFrom,omitempty"` ReceivingFrom []*Carrier `json:"receivingFrom,omitempty"` TotalTransitTo int64 `json:"totalTransitTo,omitempty"` TransitTo []*Carrier `json:"transitTo,omitempty"` ConfidenceArea []ConfidenceArea `json:"confidenceArea,omitempty"` }
type ConfidenceArea ¶
type Country ¶
type Country struct { ISOAlpha2 string `json:"isoAlpha2"` ISOAlpha3 string `json:"isoAlpha3"` M49Code int64 `json:"m49Code"` Name string `json:"name"` ISOName string `json:"isoName"` ISONameFull string `json:"isoNameFull"` ISOAdminLanguages []*ISOAdminLanguage `json:"isoAdminLanguages"` UnRegion string `json:"unRegion"` Currency *Currency `json:"currency"` WbRegion *WBNode `json:"wbRegion"` WbIncomeLevel *WBNode `json:"wbIncomeLevel"` CallingCode string `json:"callingCode"` CountryFlagEmoji string `json:"countryFlagEmoji"` WikidataID string `json:"wikidataId"` GeonameID int64 `json:"geonameId"` Continents []*Continent `json:"continents"` }
type CountryStats ¶
type CountryStats struct { Rank int64 `json:"rank"` CountryName string `json:"countryName"` CountryCode string `json:"countryCode"` TotalAddresses int64 `json:"totalAddresses"` TotalHighQuality int64 `json:"totalHighQuality"` TotalModerateQuality int64 `json:"totalModerateQuality"` TotalLowQuality int64 `json:"totalLowQuality"` }
type EmailVerification ¶
type ErrorResponse ¶
type ErrorResponse struct { ID string `json:"$id"` Status int64 `json:"status"` Description string `json:"description"` }
func (*ErrorResponse) Error ¶
func (err *ErrorResponse) Error() string
type HazardReport ¶
type HazardReport struct { IsKnownAsTorServer bool `json:"isKnownAsTorServer"` IsKnownAsVPN bool `json:"isKnownAsVpn"` IsKnownAsProxy bool `json:"isKnownAsProxy"` IsSpamhausDrop bool `json:"isSpamhausDrop"` IsSpamhausEdrop bool `json:"isSpamhausEdrop"` IsSpamhausAsnDrop bool `json:"isSpamhausAsnDrop"` IsBlacklistedUceprotect bool `json:"isBlacklistedUceprotect"` IsBlacklistedBlocklistDe bool `json:"isBlacklistedBlocklistDe"` IsKnownAsMailServer bool `json:"isKnownAsMailServer"` IsKnownAsPublicRouter bool `json:"isKnownAsPublicRouter"` IsBogon bool `json:"isBogon"` IsUnreachable bool `json:"isUnreachable"` HostingLikelihood int64 `json:"hostingLikelihood"` IsHostingAsn bool `json:"isHostingAsn"` IsCellular bool `json:"isCellular"` }
type IPGeolocation ¶
type IPGeolocation struct { IP string `json:"ip"` LocalityLanguageRequested string `json:"localityLanguageRequested"` IsReachableGlobally bool `json:"isReachableGlobally"` Country *Country `json:"country"` Location *Location `json:"location"` LastUpdated string `json:"lastUpdated"` Network *Network `json:"network"` Confidence *string `json:"confidence,omitempty"` ConfidenceArea []ConfidenceArea `json:"confidenceArea,omitempty"` SecurityThreat *string `json:"securityThreat,omitempty"` HazardReport *HazardReport `json:"hazardReport,omitempty"` }
type IPStatsPerCountry ¶
type IPStatsPerCountry struct { FullUpdate string `json:"fullUpdate"` PartialUpdate string `json:"partialUpdate"` TotalReachableAddresses int64 `json:"totalReachableAddresses"` TotalHighQuality int64 `json:"totalHighQuality"` Countries []*CountryStats `json:"countries"` TotalModerateQuality int64 `json:"totalModerateQuality"` TotalLowQuality int64 `json:"totalLowQuality"` Unresolved int64 `json:"unresolved"` LocalityLanguageRequested string `json:"localityLanguageRequested"` }
type ISOAdminLanguage ¶
type Locality ¶
type Locality struct { Order int64 `json:"order"` AdminLevel *int64 `json:"adminLevel,omitempty"` Name string `json:"name"` Description string `json:"description"` ISOName *string `json:"isoName,omitempty"` ISOCode *string `json:"isoCode,omitempty"` WikidataID *string `json:"wikidataId,omitempty"` GeonameID *int64 `json:"geonameId,omitempty"` }
type LocalityInfo ¶
type Location ¶
type Location struct { Continent string `json:"continent"` ContinentCode string `json:"continentCode"` ISOPrincipalSubdivision string `json:"isoPrincipalSubdivision"` ISOPrincipalSubdivisionCode string `json:"isoPrincipalSubdivisionCode"` City string `json:"city"` LocalityName string `json:"localityName"` Postcode string `json:"postcode"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` PlusCode string `json:"plusCode"` TimeZone *TimeZone `json:"timeZone"` LocalityInfo *LocalityInfo `json:"localityInfo"` }
type Network ¶
type Network struct { Registry string `json:"registry"` RegistryStatus string `json:"registryStatus"` RegisteredCountry string `json:"registeredCountry"` RegisteredCountryName string `json:"registeredCountryName"` Organisation string `json:"organisation"` IsReachableGlobally bool `json:"isReachableGlobally"` IsBogon bool `json:"isBogon"` BGPPrefix string `json:"bgpPrefix"` BGPPrefixNetworkAddress string `json:"bgpPrefixNetworkAddress"` BGPPrefixLastAddress string `json:"bgpPrefixLastAddress"` TotalAddresses int64 `json:"totalAddresses"` Carriers []*Carrier `json:"carriers"` ViaCarriers []*Carrier `json:"viaCarriers"` }
type PhoneValidation ¶
type PhoneValidation struct { IsValid bool `json:"isValid"` E164Format string `json:"e164Format,omitempty"` InternationalFormat string `json:"internationalFormat,omitempty"` NationalFormat string `json:"nationalFormat,omitempty"` Location string `json:"location,omitempty"` LineType string `json:"lineType,omitempty"` Country *Country `json:"country,omitempty"` }
type ReverseGeolocation ¶
type ReverseGeolocation struct { Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` PlusCode string `json:"plusCode"` LocalityLanguageRequested string `json:"localityLanguageRequested"` Continent string `json:"continent"` ContinentCode string `json:"continentCode"` CountryName string `json:"countryName"` CountryCode string `json:"countryCode"` PrincipalSubdivision string `json:"principalSubdivision"` PrincipalSubdivisionCode string `json:"principalSubdivisionCode"` City string `json:"city"` Locality string `json:"locality"` Postcode string `json:"postcode"` LocalityInfo *LocalityInfo `json:"localityInfo"` TimeZone *TimeZone `json:"timeZone,omitempty"` }
type TimeZone ¶
type TimeZone struct { IANATimeID string `json:"ianaTimeId"` DisplayName string `json:"displayName"` EffectiveTimeZoneFull string `json:"effectiveTimeZoneFull"` EffectiveTimeZoneShort string `json:"effectiveTimeZoneShort"` UTCOffsetSeconds int64 `json:"utcOffsetSeconds"` UTCOffset string `json:"utcOffset"` IsDaylightSavingTime bool `json:"isDaylightSavingTime"` LocalTime string `json:"localTime"` }
type UserAgentInfo ¶
type UserAgentInfo struct { Device string `json:"device"` OS string `json:"os"` UserAgent string `json:"userAgent"` Family string `json:"family"` VersionMajor string `json:"versionMajor"` VersionMinor string `json:"versionMinor"` IsSpider bool `json:"isSpider"` IsMobile bool `json:"isMobile"` UserAgentDisplay string `json:"userAgentDisplay"` }
Click to show internal directories.
Click to hide internal directories.