protocol

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 4 Imported by: 0

README

GoTrackery Protocol

LintAndTest

GoTrackery Protocol is repository of go implementation of GPS protocols.

It is now under heavily development.

Protocol Status
Wialon IPS Decoder for Login, ShortData, Data, BlackBox implemented
EGTS Decoder and Encoder implemented
Wialon Restranslator Decoder implemented
H02 to be later

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAttributesNoItem is returned when the attribute with given key is not present.
	ErrAttributesNoItem = errors.New("no item with given key")
	// ErrAttributesNotInt64 is returned when the attribute with given key is not of type int64.
	ErrAttributesNotInt64 = errors.New("value is not int64")
	// ErrAttributesNotFloat64 is returned when the attribute with given key is not of type float64.
	ErrAttributesNotFloat64 = errors.New("value is not float64")
	// ErrAttributesNotString is returned when the attribute with given key is not of type string.
	ErrAttributesNotString = errors.New("value is not string")
)
View Source
var (
	// ErrInconsistentData is returned when the data is inconsistent with protocol specification.
	// It signals that communication session must be terminated.
	ErrInconsistentData = errors.New("data inconsistent to protocol specification")
)

Functions

This section is empty.

Types

type Attributes

type Attributes map[string]interface{}

Attributes is a generic attributes struct. It is used for key-value attributes for common purposes.

func (Attributes) AppendNullFloat

func (a Attributes) AppendNullFloat(name string, f null.Float) Attributes

AppendNullFloat appends a null float to the attribute.

func (Attributes) AppendNullFloatSlice

func (a Attributes) AppendNullFloatSlice(name string, s []null.Float) Attributes

AppendNullFloatSlice appends a null float slice to the attribute.

func (Attributes) AppendNullInt

func (a Attributes) AppendNullInt(name string, i null.Int) Attributes

AppendNullInt appends a null int to the attribute.

func (Attributes) AppendNullString

func (a Attributes) AppendNullString(name string, s null.String) Attributes

AppendNullString appends a null string to the attribute.

func (Attributes) GetFloat64

func (a Attributes) GetFloat64(key string) (f float64, err error)

GetFloat64 returns the float64 value of the attribute.

func (Attributes) GetInt64

func (a Attributes) GetInt64(key string) (i int64, err error)

GetInt64 returns the int64 value of the attribute.

func (Attributes) GetString

func (a Attributes) GetString(key string) (f string, err error)

GetString returns the string value of the attribute.

func (Attributes) GetType

func (a Attributes) GetType(key string) (string, error)

GetType returns the type of the attribute.

Directories

Path Synopsis
Package egts implements EGTS (Era Glonass Telematics Standard) - telematic data transmission standard developed by the Government of the Russian Federation and approved by Order #285 of the Ministry of Transport of July 31, 2012
Package egts implements EGTS (Era Glonass Telematics Standard) - telematic data transmission standard developed by the Government of the Russian Federation and approved by Order #285 of the Ministry of Transport of July 31, 2012
Package generic gives a set of generic structs and functions for geodata manipulations.
Package generic gives a set of generic structs and functions for geodata manipulations.
Package wialonips implements the Wialon IPS communication protocol that was developed by Gurtam for use in personal and automotive GPS and GLONASS trackers which transfer data to a satellite monitoring server using the TCP or the UDP protocol.
Package wialonips implements the Wialon IPS communication protocol that was developed by Gurtam for use in personal and automotive GPS and GLONASS trackers which transfer data to a satellite monitoring server using the TCP or the UDP protocol.
wialonretr is package that implements the Wialon Retranslator protocol (v.
wialonretr is package that implements the Wialon Retranslator protocol (v.

Jump to

Keyboard shortcuts

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