Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
Collection is a collection of trackers
type ConfidenceList ¶
type ConfidenceList []string
OutputConfig is a generic mapping of config for an output
func (*ConfidenceList) Scan ¶
func (list *ConfidenceList) Scan(src interface{}) error
Scan implements SQL scan driver
type GeoSubscription ¶
type GeoSubscription struct { Subscription Subscription ShapeCollection ShapeCollection TrackerMovements []TrackerMovement Shapes []Shape }
GeoSubscription represents an aggregated struct containing both the subscription details, shape collection, subscription shapes and last tracker movements, all of which is needed to activate a full subscription between a Subscription and a trackable.
type MovementList ¶
type MovementList []string
OutputConfig is a generic mapping of config for an output
func (*MovementList) Scan ¶
func (list *MovementList) Scan(src interface{}) error
Scan implements SQL scan driver
type OutputConfig ¶
type OutputConfig map[string]interface{}
OutputConfig is a generic mapping of config for an output
func (*OutputConfig) Scan ¶
func (config *OutputConfig) Scan(src interface{}) error
Scan implements SQL scan driver
type Position ¶
type Position struct { ID int64 TrackerID int64 Timestamp int64 Lat float64 Lon float64 Alt float64 Heading float64 Speed float64 Payload []byte Precision float64 }
Position represents a datapoint from a tracker which may optionally carry a payload.
type Shape ¶
type Shape struct { ID int64 ShapeCollectionID int64 Name string Properties geometry.ShapeProperties Shape geometry.Shape }
Shape represents a shape, part of a ShapeCollection
type ShapeCollection ¶
ShapeCollection represents a collection of spatial shapes as a polygon or circle
type ShapeFeature ¶
type ShapeFeature struct { ID int64 ShapeCollectionID int64 Name string Properties geometry.ShapeProperties Shape geometry.Shape }
ShapeFeature represents a shape, part of a ShapeCollection, containing both raw and triangulized data
type Subscription ¶
type Subscription struct { ID int64 TeamID int64 Name string Description string Active bool Output string OutputConfig OutputConfig Types MovementList Confidences ConfidenceList ShapeCollectionID int64 // TrackableType is which type of trackable we're talking about, typically a tracker // or a collection of trackers TrackableType string // TrackableID is the ID of trackable within its domain, either tracker og collection TrackableID int64 }
Subscription represents a subscription between a trackable entity and an output
type TrackerMovement ¶
type TrackerMovement struct { TrackerID int64 SubscriptionID int64 ShapeID int64 PositionID int64 Movements MovementList }
TrackerMovement contains information where the position was last