ingest

package
v0.0.0-...-c9096f0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interfaces

func Interfaces(tripDirs []string) ([]string, error)

func NewGPSChan

func NewGPSChan(dirs []string) (<-chan gps.NMEA, error)

func NewGPSPackets

func NewGPSPackets(dirs []string) (<-chan GPSPacket, error)

func NewIfacePacketChan

func NewIfacePacketChan(tripDirs []string, iface string) (<-chan wlan.Packet, error)

Types

type GPSPacket

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

func (*GPSPacket) Loc

func (g *GPSPacket) Loc() gps.NMEA

func (*GPSPacket) Pkt

func (g *GPSPacket) Pkt() wlan.Packet

type LatLon

type LatLon struct {
	Lat float64
	Lon float64
}

type Rect

type Rect struct {
	TL LatLon
	BR LatLon
}

func (*Rect) Contains

func (r *Rect) Contains(ll LatLon) bool

type TimeMap

type TimeMap map[int64][]GPSPacket

func NewTimeMap

func NewTimeMap(ch <-chan GPSPacket) (TimeMap, error)

type TimeMapDB

type TimeMapDB struct {
	Trips   map[string]struct{}
	Packets TimeMap
}

func NewTimeMapDB

func NewTimeMapDB() *TimeMapDB

func (*TimeMapDB) AddTrips

func (tdb *TimeMapDB) AddTrips(dir string) error

func (*TimeMapDB) Load

func (tdb *TimeMapDB) Load(path string) error

func (*TimeMapDB) Save

func (tdb *TimeMapDB) Save(path string) error

Jump to

Keyboard shortcuts

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