models

package
v0.0.0-...-8e68653 Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: GPL-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AprsMessage

type AprsMessage struct {
	PacketType
	Timestamp           int32          `json:"timestamp"`
	SourceCallsign      string         `json:"src_callsign"`
	DestinationCallsign string         `json:"dst_callsign"`
	Status              string         `json:"status"`
	Symbol              string         `json:"symbol"`
	Latitude            float64        `json:"latitude"`
	Longitude           float64        `json:"longitude"`
	IncludesPosition    bool           `json:"includes_position"`
	Altitude            float64        `json:"altitude"`
	Speed               float64        `json:"speed"`
	Course              uint8          `json:"course"`
	Weather             *WeatherReport `json:"weather_report"`
	RawMessage          string         `json:"raw_message"`
}

type PacketType

type PacketType int
const (
	LocationPacketType PacketType = iota
	ObjectPacketType
	ItemPacketType
	MicePacketType
	NMEAPacketType
	WXPacketType
	MessagePacketType
	CapabilitiesPacketType
	StatusPacketType
	TelemetryPacketType
	TelemetryMessagePacketType
	DXSpotPacketType
	ExperimentalPacketType
	InvalidPacketType
)

type RawAprsPacket

type RawAprsPacket struct {
	Data   string `json:"data"`
	IsAX25 bool   `json:"is_ax25"`
}

func (*RawAprsPacket) FieldMap

func (cf *RawAprsPacket) FieldMap() binding.FieldMap

type WeatherReport

type WeatherReport struct {
	Temperature       float64 `json:"temp"`
	InsideTemperature float64 `json:"temp_in"`
	Humidity          uint8   `json:"humidity"`
	InsideHumidity    uint8   `json:"humidity_in"`
	WindGust          float64 `json:"wind_gust"`
	WindDirection     uint8   `json:"wind_dir"`
	WindSpeed         float64 `json:"wind_speed"`
}

Jump to

Keyboard shortcuts

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