model

package
v0.0.0-...-c33729e Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2016 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	City struct {
		GeoNameID uint              `json:"geoname_id" maxminddb:"geoname_id"`
		Names     map[string]string `json:"names" maxminddb:"names"`
	} `json:"city" maxminddb:"city"`
	Continent struct {
		Code      string            `json:"code" maxminddb:"code"`
		GeoNameID uint              `json:"geoname_id" maxminddb:"geoname_id"`
		Names     map[string]string `json:"names" maxminddb:"names"`
	} `json:"continent" maxminddb:"continent"`
	Country struct {
		GeoNameID uint              `json:"geoname_id" maxminddb:"geoname_id"`
		IsoCode   string            `json:"iso_code" maxminddb:"iso_code"`
		Names     map[string]string `json:"names" maxminddb:"names"`
	} `json:"country" maxminddb:"country"`
	Location struct {
		AccuracyRadius uint16  `json:"accuracy_radius" maxminddb:"accuracy_radius"`
		Latitude       float64 `json:"latitude" maxminddb:"latitude"`
		Longitude      float64 `json:"longitude" maxminddb:"longitude"`
		MetroCode      uint    `json:"metro_code" maxminddb:"metro_code"`
		TimeZone       string  `json:"time_zone" maxminddb:"time_zone"`
	} `json:"location" maxminddb:"location"`
	Postal struct {
		Code string `json:"code" maxminddb:"code"`
	} `json:"postal" maxminddb:"postal"`
	RegisteredCountry struct {
		GeoNameID uint              `json:"geoname_id" maxminddb:"geoname_id"`
		IsoCode   string            `json:"iso_code" maxminddb:"iso_code"`
		Names     map[string]string `json:"names" maxminddb:"names"`
	} `json:"registered_country" maxminddb:"registered_country"`
	RepresentedCountry struct {
		GeoNameID uint              `json:"geoname_id" maxminddb:"geoname_id"`
		IsoCode   string            `json:"iso_code" maxminddb:"iso_code"`
		Names     map[string]string `json:"names" maxminddb:"names"`
		Type      string            `json:"type" maxminddb:"type"`
	} `json:"represented_country" maxminddb:"represented_country"`
	Subdivisions []struct {
		GeoNameID uint              `json:"geoname_id" maxminddb:"geoname_id"`
		IsoCode   string            `json:"iso_code" maxminddb:"iso_code"`
		Names     map[string]string `json:"names" maxminddb:"names"`
	} `json:"subdivisions" maxminddb:"subdivisions"`
	Traits struct {
		IsAnonymousProxy    bool `json:"is_anonymous_proxy" maxminddb:"is_anonymous_proxy"`
		IsSatelliteProvider bool `json:"is_satellite_provider" maxminddb:"is_satellite_provider"`
	} `json:"traits" maxminddb:"traits"`
}

func (City) MarshalEasyJSON

func (v City) MarshalEasyJSON(w *jwriter.Writer)

func (City) MarshalJSON

func (v City) MarshalJSON() ([]byte, error)

func (*City) UnmarshalEasyJSON

func (v *City) UnmarshalEasyJSON(l *jlexer.Lexer)

func (*City) UnmarshalJSON

func (v *City) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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