Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type City ¶
type City struct { gorm.Model Name string `json:"name" gorm:"type:varchar(31);not null;default:'';unique_index"` Latitude float64 `json:"latitude" gorm:"type:numeric(9,6);not null;default:0"` Longitude float64 `json:"longitude" gorm:"type:numeric(9,6);not null;default:0"` Temperatures []Temperature Webhooks []Webhook }
City stores the city information.
type Forcast ¶
type Forcast struct { Max float64 `json:"max"` Min float64 `json:"min"` Sample int `json:"sample"` }
Forcast stores the forcast information.
type Temperature ¶
type Temperature struct { gorm.Model CityID uint `json:"city_id" gorm:"type:int;not null;default:0"` Max float64 `json:"max" gorm:"type:numeric(4,2);not null;default:0"` Min float64 `json:"min" gorm:"type:numeric(4,2);not null;default:0"` }
Temperature stores the temperature information for a city.
Click to show internal directories.
Click to hide internal directories.