sn

package
v0.0.0-...-7e7c30f Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGRPlacefile

func GenerateGRPlacefile(title string, spotters []Spotter) (*bytes.Buffer, error)

func GenerateGearthPlacefile

func GenerateGearthPlacefile(spotters []Spotter) (*bytes.Buffer, error)

func GenerateRssPlacefile

func GenerateRssPlacefile(title string, url string, spotters []Spotter) (*bytes.Buffer, error)

func GenerateSLPlacefile

func GenerateSLPlacefile(title string, spotters []Spotter) (*bytes.Buffer, error)

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"`
}

func GetSpotters

func GetSpotters(appID string, spotterIds []int) ([]Spotter, error)

type SpotterRequestBody

type SpotterRequestBody struct {
	AppID      string `json:"id"`
	SpotterIds []int  `json:"markers"`
}

type SpotterResponseBody

type SpotterResponseBody struct {
	Spotters []Spotter `json:"positions"`
}

Jump to

Keyboard shortcuts

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