Documentation ¶
Index ¶
- func GenerateGRPlacefile(title string, spotters []Spotter) (*bytes.Buffer, error)
- func GenerateGearthPlacefile(spotters []Spotter) (*bytes.Buffer, error)
- func GenerateRssPlacefile(title string, url string, spotters []Spotter) (*bytes.Buffer, error)
- func GenerateSLPlacefile(title string, spotters []Spotter) (*bytes.Buffer, error)
- func Initialize(box *packr.Box)
- type Spotter
- type SpotterRequestBody
- type SpotterResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateGRPlacefile ¶
func GenerateGearthPlacefile ¶
func GenerateRssPlacefile ¶
func GenerateSLPlacefile ¶
func Initialize ¶
func Initialize(box *packr.Box)
Types ¶
type Spotter ¶
type Spotter struct { LastReport string `json:"report_at,omitempty"` Lat float64 `json:"lat,string,omitempty"` Lon float64 `json:"lon,string,omitempty"` Elev int `json:"elev,string,omitempty"` Dir int `json:"dir,string,omitempty"` Gps bool `json:"gps,omitempty"` Callsign string `json:"callsign,omitempty"` Email string `json:"email,omitempty"` Phone string `json:"phone,omitempty"` Ham string `json:"ham,omitempty"` HamShow bool `json:"ham_show,omitempty"` Freq string `json:"freq,omitempty"` Note string `json:"note,omitempty"` IM string `json:"im,omitempty"` Twitter string `json:"twitter,omitempty"` Web string `json:"web,omitempty"` Unix int64 `json:"unix,string,omitempty"` First string `json:"first,omitempty"` Last string `json:"last,omitempty"` Marker string `json:"marker,omitempty"` }
type SpotterRequestBody ¶
type SpotterResponseBody ¶
type SpotterResponseBody struct {
Spotters []Spotter `json:"positions"`
}
Click to show internal directories.
Click to hide internal directories.