buoyModels

package
Version: v0.0.0-...-a78190c Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2014 License: BSD-2-Clause-Views Imports: 2 Imported by: 13

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.

Source Files

Jump to

Keyboard shortcuts

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