Documentation
¶
Index ¶
- Variables
- type Attributes
- 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)
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.
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. |
Click to show internal directories.
Click to hide internal directories.