logparser

package
v0.0.186 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const QueueDepth = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type GpsCoordinates

type GpsCoordinates struct {
	Latitude             float64
	Longitude            float64
	Time                 time.Time
	AccuracyMeters       float64
	SpeedMetersPerSecond float64
	Bearing              float64
}

type LogQueue added in v0.0.165

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

func NewLogQueue added in v0.0.165

func NewLogQueue(config *config.Config, db *gorm.DB, metrics *metrics.Metrics) *LogQueue

func (*LogQueue) AddLog added in v0.0.165

func (q *LogQueue) AddLog(path string, dongleID string)

func (*LogQueue) Start added in v0.0.165

func (q *LogQueue) Start()

func (*LogQueue) Stop added in v0.0.165

func (q *LogQueue) Stop()

type SegmentData

type SegmentData struct {
	GPSLocations      []GpsCoordinates
	EndCoordinates    GpsCoordinates
	EarliestTimestamp uint64
	LatestTimestamp   uint64
	CANPresent        bool
	DongleID          string
	InitLogMonoTime   uint64
	DeviceType        cereal.InitData_DeviceType
	CarModel          string
	GitRemote         string
	GitBranch         string
	StartOfRoute      bool
	EndOfRoute        bool
}

func DecodeSegmentData

func DecodeSegmentData(reader io.Reader) (SegmentData, error)

Jump to

Keyboard shortcuts

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