ip_address

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByIPAddress

type ByIPAddress struct {
	// The geographical ID of the city
	CityGeoId int `json:"cityGeoId"`

	// The geographical ID of the state
	StateGeoId int `json:"stateGeoId"`

	// The latitude coordinate of the city
	Latitude float64 `json:"latitude"`

	// The longitude coordinate of the city
	Longitude float64 `json:"longitude"`

	// The name of the city
	CityName string `json:"cityName"`

	// The name of the state, province, or territory of a country
	StateName string `json:"stateName"`

	// The name of the country
	CountryName string `json:"countryName"`

	// The ISO standard two-letter country code
	CountryCode string `json:"countryCode"`

	// The postal code
	PostalCode string `json:"postalCode"`

	// The ISO standard two-letter continent code
	ContinentCode string `json:"continentCode"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) GetByIPAddress

func (service *Service) GetByIPAddress(ipAddress string) (*ByIPAddress, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL