acmap

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dump1090Map

type Dump1090Map struct {
	// contains filtered or unexported fields
}

Dump1090Map - Implements tracker.MapService.

func NewDump1090Map

func NewDump1090Map(ma tracker.MapAccess) *Dump1090Map

NewDump1090Map returns a new Dump1090Map.

func (*Dump1090Map) AircraftJSONHandler

func (d *Dump1090Map) AircraftJSONHandler(w http.ResponseWriter, r *http.Request)

AircraftJSONHandler implements the HTTP handler for aircraft.json

func (*Dump1090Map) MapService

func (d *Dump1090Map) MapService() string

MapService returns the name of this map service. See MapService.MapService.

func (*Dump1090Map) ReceiverJSONHandler

func (d *Dump1090Map) ReceiverJSONHandler(w http.ResponseWriter, r *http.Request)

ReceiverJSONHandler implements the HTTP handler for receiver.json

func (*Dump1090Map) RegisterRoutes

func (d *Dump1090Map) RegisterRoutes(r *mux.Router) error

RegisterRoutes registers the routes for dump1090 on r.

func (*Dump1090Map) UpdateHistory

func (d *Dump1090Map) UpdateHistory(projNames []string) error

UpdateHistory generates a new history file the provided projNames. See MapService.UpdateHistory.

Jump to

Keyboard shortcuts

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