Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InventoryEvent ¶
type InventoryEvent struct {
Data []Tag `json:"data"`
}
InventoryEvent holds EdgeX events schema
type LocationHistory ¶
type LocationHistory struct { Location string `json:"location"` Timestamp int64 `json:"timestamp"` Source string `json:"source"` }
LocationHistory is the model to record the whereabouts history of a tag
type Tag ¶
type Tag struct { // URI string representation of tag URI string `json:"uri"` // SGTIN EPC code Epc string `json:"epc"` // ProductID ProductID string `json:"product_id"` // Part of EPC, denotes packaging level of the item FilterValue int64 `json:"filter_value"` // Tag manufacturer ID Tid string `json:"tid"` // TBD EpcEncodeFormat string `json:"encode_format"` // Facility ID FacilityID string `json:"facility_id"` // Last event recorded for tag Event string `json:"event"` // Arrival time in milliseconds epoch Arrived int64 `json:"arrived"` // Tag last read time in milliseconds epoch LastRead int64 `json:"last_read"` // Where tags were read from (fixed or handheld) Source string `json:"source"` // Array of objects showing history of the tag's location LocationHistory []LocationHistory `json:"location_history"` // Current state of tag, either ’present’ or ’departed’ EpcState string `json:"epc_state"` // Customer defined state QualifiedState string `json:"qualified_state"` // Time to live, used for db purging - always in sync with last read TTL time.Time `json:"ttl"` // Customer defined context EpcContext string `json:"epc_context"` // Probability item is actually present Confidence float64 `json:"confidence"` // Cycle Count indicator CycleCount bool `json:"-"` }
Tag is the model containing items for a RFID Tag
Click to show internal directories.
Click to hide internal directories.