Documentation
¶
Overview ¶
models/cache.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type GeolocationResponse ¶
type GeolocationResponse struct {
IP *string `json:"ip" yaml:"ip,omitempty"`
Hostname *string `json:"hostname" yaml:"hostname,omitempty"`
Domain *string `json:"domain" yaml:"domain,omitempty"`
ContinentCode *string `json:"continent_code" yaml:"continent_code,omitempty"`
ContinentName *string `json:"continent_name" yaml:"continent_name,omitempty"`
CountryCode2 *string `json:"country_code2" yaml:"country_code2,omitempty"`
CountryCode3 *string `json:"country_code3" yaml:"country_code3,omitempty"`
CountryName *string `json:"country_name" yaml:"country_name,omitempty"`
CountryNameOfficial *string `json:"country_name_official" yaml:"country_name_official,omitempty"`
CountryCapital *string `json:"country_capital" yaml:"country_capital,omitempty"`
StateProv *string `json:"state_prov" yaml:"state_prov,omitempty"`
StateCode *string `json:"state_code" yaml:"state_code,omitempty"`
District *string `json:"district" yaml:"district,omitempty"`
City *string `json:"city" yaml:"city,omitempty"`
Zipcode *string `json:"zipcode" yaml:"zipcode,omitempty"`
Latitude *decimal.Decimal `json:"latitude" yaml:"latitude,omitempty"`
Longitude *decimal.Decimal `json:"longitude" yaml:"longitude,omitempty"`
IsEU *bool `json:"is_eu" yaml:"is_eu,omitempty"`
CallingCode *string `json:"calling_code" yaml:"calling_code,omitempty"`
CountryTLD *string `json:"country_tld" yaml:"country_tld,omitempty"`
Languages *string `json:"languages" yaml:"languages,omitempty"`
CountryFlag *string `json:"country_flag" yaml:"country_flag,omitempty"`
GeonameID *string `json:"geoname_id" yaml:"geoname_id,omitempty"`
ISP *string `json:"isp" yaml:"isp,omitempty"`
ConnectionType *string `json:"connection_type" yaml:"connection_type,omitempty"`
Organization *string `json:"organization" yaml:"organization,omitempty"`
ASN *string `json:"asn" yaml:"asn,omitempty"`
Currency *Currency `json:"currency" yaml:"currency,omitempty"`
TimeZone *TimeZone `json:"time_zone" yaml:"time_zone,omitempty"`
Security *Security `json:"security" yaml:"security,omitempty"`
UserAgent *UserAgent `json:"user_agent" yaml:"user_agent,omitempty"`
}
func (*GeolocationResponse) MarshalJSON ¶
func (resp *GeolocationResponse) MarshalJSON() ([]byte, error)
func (*GeolocationResponse) MarshalYAML ¶
func (g *GeolocationResponse) MarshalYAML() (interface{}, error)
type Security ¶
type Security struct {
ThreatScore *int `json:"threat_score"`
IsTor *bool `json:"is_tor"`
IsProxy *bool `json:"is_proxy"`
ProxyType *string `json:"proxy_type"`
IsAnonymous *bool `json:"is_anonymous"`
IsKnownAttacker *bool `json:"is_known_attacker"`
IsSpam *bool `json:"is_spam"`
IsBot *bool `json:"is_bot"`
IsCloudProvider *bool `json:"is_cloud_provider"`
}
type UserAgent ¶
type UserAgent struct {
UserAgentString *string `json:"userAgentString"`
Name *string `json:"name"`
Type *string `json:"type"`
Version *string `json:"version"`
VersionMajor *string `json:"versionMajor"`
Device *Device `json:"device"`
Engine *Engine `json:"engine"`
OperatingSystem *OS `json:"operatingSystem"`
}
Click to show internal directories.
Click to hide internal directories.