Versions in this module Expand all Collapse all v0 v0.0.3 Apr 22, 2023 Changes in this version + const AnInput + const DigInput + const DigOutput + const HDOP + const Move + const NavSystem + const Odometer + const PDOP + const Proto + const Satellites + const VDOP + var ErrAttributesNoItem = errors.New("no item with given key") + var ErrAttributesNotFloat64 = errors.New("value is not float64") + var ErrAttributesNotInt64 = errors.New("value is not int64") + var ErrAttributesNotString = errors.New("value is not string") + var ErrBadData = errors.New("data is bad to protocol specification") + type Attributes map[string]interface + func (a Attributes) AppendNullFloat(name string, f null.Float) Attributes + func (a Attributes) AppendNullFloatSlice(name string, s []null.Float) Attributes + func (a Attributes) AppendNullInt(name string, i null.Int) Attributes + func (a Attributes) AppendNullString(name string, s null.String) Attributes + func (a Attributes) GetFloat64(key string) (f float64, err error) + func (a Attributes) GetInt64(key string) (i int64, err error) + func (a Attributes) GetString(key string) (f string, err error) + func (a Attributes) GetType(key string) (string, error) + type AxisWGS84 struct + Cardinal CardinalAxis + Coordinate float64 + func ParseAxisWGS84(coord string, c CardinalAxis) (AxisWGS84, error) + func (a AxisWGS84) Float64() float64 + type CardinalAxis string + const East + const North + const South + const West + func ParseCardinalAxis(raw string) (cp CardinalAxis, err error) + func (c CardinalAxis) Sign() float64 + type Cellular struct + CellID int64 + LAC int64 + MCC int64 + MNC int64 + type FrameSplitter interface + BadData func() []byte + Error func() error + Splitter func() bufio.SplitFunc + type Location struct + Valid bool + type PointWGS84 struct + Lat AxisWGS84 + Lon AxisWGS84 + Valid bool + func ParsePointWGS84(lon string, cardLon CardinalAxis, lat string, cardLat CardinalAxis) (PointWGS84, error) + func (w PointWGS84) LocationXY() Location + func (w PointWGS84) LocationXYZ(z float64) Location + type Position struct + Attributes Attributes + Cellular *Cellular + Course null.Float + DeviceID string + DeviceTime time.Time + Protocol string + Speed null.Float + func (p Position) MarshalZerologObject(e *zerolog.Event)