logparser

package
v0.0.244 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 20 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
	LogMonoTime          uint64
	SpeedMetersPerSecond float64
	Bearing              float64
	Distance             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, storage storage.Storage, metrics *metrics.Metrics) *LogQueue

func (*LogQueue) AddLog added in v0.0.165

func (q *LogQueue) AddLog(path string, dongleID string, routeInfo v1dot4.RouteInfo)

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
	EndLogMonoTime          uint64
	FirstClockWallTimeNanos uint64
	FirstClockLogMonoTime   uint64
	CANPresent              bool
	GitDirty                bool
	GitCommit               string
	Version                 string
	DongleID                string
	Radar                   bool
	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