buoyModels

package
v0.0.0-...-59e9b52 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2014 License: BSD-2-Clause-Views Imports: 2 Imported by: 0

Documentation

Overview

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"`
	WindDirection int     `bson:"wind_direction_degnorth"`
	WindGust      float64 `bson:"gust_wind_speed_milehour"`
}

BuoyCondition contains information for an individual station

func (*BuoyCondition) DisplayWindGust

func (this *BuoyCondition) DisplayWindGust() string

func (*BuoyCondition) DisplayWindSpeed

func (this *BuoyCondition) DisplayWindSpeed() string

type BuoyLocation

type BuoyLocation struct {
	Type        string    `bson:"type"`
	Coordinates []float64 `bson:"coordinates"`
}

BuoyLocation contains the buoys location

type BuoyStation

type BuoyStation struct {
	ID        bson.ObjectId `bson:"_id,omitempty"`
	StationId string        `bson:"station_id"`
	Name      string        `bson:"name"`
	LocDesc   string        `bson:"location_desc"`
	Condition BuoyCondition `bson:"condition"`
	Location  BuoyLocation  `bson:"location"`
}

BuoyStation contains information for an individual station

Jump to

Keyboard shortcuts

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