wiresx

package
v0.0.0-...-bc5a403 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package wiresx provides WiresX log tailing and parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TailLog

func TailLog(path string, ingestWholeFile bool, loc *time.Location, logChan chan *Log) error

TailLog tails the logfile to parse the loglines and returns log entries into a channel.

Types

type Activity

type Activity string

Activity defines an activity.

type Device

type Device string

Device defines a device type.

func (Device) InferDevice

func (d Device) InferDevice() string

InferDevice returns a string representation of the device type.

type Location

type Location struct {
	Lat float64
	Lon float64
}

Location defines a position with longitude and latitude.

type Log

type Log struct {
	Callsign    string
	Dev         Device
	Description string
	Timestamp   time.Time
	Source      Activity
	Loc         *Location
}

Log defines the data of a WiresX logentry, see also https://github.com/HB9UF/unconfusion.

Jump to

Keyboard shortcuts

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