Documentation ¶
Overview ¶
Package buoyModels contains the models for the buoy service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuoyCondition ¶
type BuoyCondition struct { WindSpeed float64 `bson:"wind_speed_milehour" json:"wind_speed_milehour"` WindDirection int `bson:"wind_direction_degnorth" json:"wind_direction_degnorth"` WindGust float64 `bson:"gust_wind_speed_milehour" json:"gust_wind_speed_milehour"` }
BuoyCondition contains information for an individual station.
func (*BuoyCondition) DisplayWindGust ¶
func (buoyCondition *BuoyCondition) DisplayWindGust() string
DisplayWindGust pretty prints wind gust.
func (*BuoyCondition) DisplayWindSpeed ¶
func (buoyCondition *BuoyCondition) DisplayWindSpeed() string
DisplayWindSpeed pretty prints wind speed.
type BuoyLocation ¶
type BuoyLocation struct { Type string `bson:"type" json:"type"` Coordinates []float64 `bson:"coordinates" json:"coordinates"` }
BuoyLocation contains the buoys location.
type BuoyStation ¶
type BuoyStation struct { ID bson.ObjectId `bson:"_id,omitempty"` StationID string `bson:"station_id" json:"station_id"` Name string `bson:"name" json:"name"` LocDesc string `bson:"location_desc" json:"location_desc"` Condition BuoyCondition `bson:"condition" json:"condition"` Location BuoyLocation `bson:"location" json:"location"` }
BuoyStation contains information for an individual station.
Click to show internal directories.
Click to hide internal directories.