model

package
v0.3.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: BSD-3-Clause Imports: 0 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 {
	Name        string  `json:"name" bson:"name"`
	CountryCode string  `json:"country_code,omitempty" bson:"country_code"`
	StateCode   string  `json:"state_code,omitempty" bson:"state_code"`
	Latitude    float64 `json:"latitude,omitempty" bson:"latitude"`
	Longitude   float64 `json:"longitude,omitempty" bson:"longitude"`
}

type Country

type Country struct {
	Name           string                   `json:"name" bson:"name"`
	Iso3           string                   `json:"iso3,omitempty" bson:"iso3"`
	Iso2           string                   `json:"iso2" bson:"iso2"`
	NumberCode     string                   `json:"number_code,omitempty" bson:"number_code"`
	PhoneCode      string                   `json:"phone_code,omitempty" bson:"phone_code"`
	Capital        string                   `json:"capital,omitempty" bson:"capital"`
	Currency       string                   `json:"currency,omitempty" bson:"currency"`
	CurrencyName   string                   `json:"currency_name,omitempty" bson:"currency_name"`
	CurrencySymbol string                   `json:"currency_symbol,omitempty" bson:"currency_symbol"`
	Tld            string                   `json:"tld,omitempty" bson:"tld"`
	Native         string                   `json:"native" bson:"native"`
	Region         string                   `json:"region,omitempty" bson:"region"`
	Subregion      string                   `json:"subregion,omitempty" bson:"subregion"`
	Timezones      []map[string]interface{} `json:"timezones,omitempty" bson:"timezones"`
	Latitude       float64                  `json:"latitude,omitempty" bson:"latitude"`
	Longitude      float64                  `json:"longitude,omitempty" bson:"longitude"`
	Emoji          string                   `json:"emoji,omitempty" bson:"emoji"`
	EmojiU         string                   `json:"emojiU,omitempty" bson:"emojiU"`
}

type State

type State struct {
	Name        string  `json:"name" bson:"name"`
	CountryCode string  `json:"country_code,omitempty" bson:"country_code"`
	StateCode   string  `json:"state_code" bson:"state_code"`
	Type        string  `json:"type,omitempty" bson:"type"`
	Latitude    float64 `json:"latitude,omitempty" bson:"latitude"`
	Longitude   float64 `json:"longitude,omitempty" bson:"longitude"`
}

Jump to

Keyboard shortcuts

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