Documentation ¶
Index ¶
- type Attribute
- type Calendar
- type Command
- type CommandType
- type Device
- type DeviceAccumulators
- type Driver
- type Event
- type Geofence
- type Group
- type Maintenance
- type Notification
- type NotificationType
- type Permission
- type Position
- type ReportStops
- type ReportSummary
- type ReportTrips
- type Server
- type Statistics
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { // attribute Attribute string `json:"attribute,omitempty"` // description Description string `json:"description,omitempty"` // expression Expression string `json:"expression,omitempty"` // id ID int64 `json:"id,omitempty"` // String|Number|Boolean Type string `json:"type,omitempty"` }
Attribute attribute
swagger:model Attribute
func (*Attribute) ContextValidate ¶
ContextValidate validates this attribute based on context it is used
func (*Attribute) MarshalBinary ¶
MarshalBinary interface implementation
func (*Attribute) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Calendar ¶
type Calendar struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // base64 encoded in iCalendar format Data string `json:"data,omitempty"` // id ID int64 `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
Calendar calendar
swagger:model Calendar
func (*Calendar) ContextValidate ¶
ContextValidate validates this calendar based on context it is used
func (*Calendar) MarshalBinary ¶
MarshalBinary interface implementation
func (*Calendar) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Command ¶
type Command struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // description Description string `json:"description,omitempty"` // device Id DeviceID int64 `json:"deviceId,omitempty"` // id ID int64 `json:"id,omitempty"` // type Type string `json:"type,omitempty"` }
Command command
swagger:model Command
func (*Command) ContextValidate ¶
ContextValidate validates this command based on context it is used
func (*Command) MarshalBinary ¶
MarshalBinary interface implementation
func (*Command) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CommandType ¶
type CommandType struct { // type Type string `json:"type,omitempty"` }
CommandType command type
swagger:model CommandType
func (*CommandType) ContextValidate ¶
ContextValidate validates this command type based on context it is used
func (*CommandType) MarshalBinary ¶
func (m *CommandType) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommandType) UnmarshalBinary ¶
func (m *CommandType) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Device ¶
type Device struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // category Category string `json:"category,omitempty"` // contact Contact string `json:"contact,omitempty"` // disabled Disabled bool `json:"disabled,omitempty"` // geofence ids GeofenceIds []int64 `json:"geofenceIds"` // group Id GroupID int64 `json:"groupId,omitempty"` // id ID int64 `json:"id,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time LastUpdate strfmt.DateTime `json:"lastUpdate,omitempty"` // model Model string `json:"model,omitempty"` // name Name string `json:"name,omitempty"` // phone Phone string `json:"phone,omitempty"` // position Id PositionID int64 `json:"positionId,omitempty"` // status Status string `json:"status,omitempty"` // unique Id UniqueID string `json:"uniqueId,omitempty"` }
Device device
swagger:model Device
func (*Device) ContextValidate ¶
ContextValidate validates this device based on context it is used
func (*Device) MarshalBinary ¶
MarshalBinary interface implementation
func (*Device) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DeviceAccumulators ¶
type DeviceAccumulators struct { // device Id DeviceID int64 `json:"deviceId,omitempty"` // hours Hours float64 `json:"hours,omitempty"` // in meters TotalDistance float64 `json:"totalDistance,omitempty"` }
DeviceAccumulators device accumulators
swagger:model DeviceAccumulators
func (*DeviceAccumulators) ContextValidate ¶
ContextValidate validates this device accumulators based on context it is used
func (*DeviceAccumulators) MarshalBinary ¶
func (m *DeviceAccumulators) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceAccumulators) UnmarshalBinary ¶
func (m *DeviceAccumulators) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Driver ¶
type Driver struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // id ID int64 `json:"id,omitempty"` // name Name string `json:"name,omitempty"` // unique Id UniqueID string `json:"uniqueId,omitempty"` }
Driver driver
swagger:model Driver
func (*Driver) ContextValidate ¶
ContextValidate validates this driver based on context it is used
func (*Driver) MarshalBinary ¶
MarshalBinary interface implementation
func (*Driver) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Event ¶
type Event struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // device Id DeviceID int64 `json:"deviceId,omitempty"` // geofence Id GeofenceID int64 `json:"geofenceId,omitempty"` // id ID int64 `json:"id,omitempty"` // maintenance Id MaintenanceID int64 `json:"maintenanceId,omitempty"` // position Id PositionID int64 `json:"positionId,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time ServerTime strfmt.DateTime `json:"serverTime,omitempty"` // type Type string `json:"type,omitempty"` }
Event event
swagger:model Event
func (*Event) ContextValidate ¶
ContextValidate validates this event based on context it is used
func (*Event) MarshalBinary ¶
MarshalBinary interface implementation
func (*Event) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Geofence ¶
type Geofence struct { // area Area string `json:"area,omitempty"` // attributes Attributes interface{} `json:"attributes,omitempty"` // calendar Id CalendarID int64 `json:"calendarId,omitempty"` // description Description string `json:"description,omitempty"` // id ID int64 `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
Geofence geofence
swagger:model Geofence
func (*Geofence) ContextValidate ¶
ContextValidate validates this geofence based on context it is used
func (*Geofence) MarshalBinary ¶
MarshalBinary interface implementation
func (*Geofence) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Group ¶
type Group struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // group Id GroupID int64 `json:"groupId,omitempty"` // id ID int64 `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
Group group
swagger:model Group
func (*Group) ContextValidate ¶
ContextValidate validates this group based on context it is used
func (*Group) MarshalBinary ¶
MarshalBinary interface implementation
func (*Group) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Maintenance ¶
type Maintenance struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // id ID int64 `json:"id,omitempty"` // name Name string `json:"name,omitempty"` // period Period float64 `json:"period,omitempty"` // start Start float64 `json:"start,omitempty"` // type Type string `json:"type,omitempty"` }
Maintenance maintenance
swagger:model Maintenance
func (*Maintenance) ContextValidate ¶
ContextValidate validates this maintenance based on context it is used
func (*Maintenance) MarshalBinary ¶
func (m *Maintenance) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Maintenance) UnmarshalBinary ¶
func (m *Maintenance) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Notification ¶
type Notification struct { // always Always bool `json:"always,omitempty"` // attributes Attributes interface{} `json:"attributes,omitempty"` // calendar Id CalendarID int64 `json:"calendarId,omitempty"` // id ID int64 `json:"id,omitempty"` // mail Mail bool `json:"mail,omitempty"` // sms Sms bool `json:"sms,omitempty"` // type Type string `json:"type,omitempty"` // web Web bool `json:"web,omitempty"` }
Notification notification
swagger:model Notification
func (*Notification) ContextValidate ¶
ContextValidate validates this notification based on context it is used
func (*Notification) MarshalBinary ¶
func (m *Notification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Notification) UnmarshalBinary ¶
func (m *Notification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NotificationType ¶
type NotificationType struct { // type Type string `json:"type,omitempty"` }
NotificationType notification type
swagger:model NotificationType
func (*NotificationType) ContextValidate ¶
ContextValidate validates this notification type based on context it is used
func (*NotificationType) MarshalBinary ¶
func (m *NotificationType) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NotificationType) UnmarshalBinary ¶
func (m *NotificationType) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Permission ¶
type Permission struct { // Computed Attribute Id, can be second parameter only AttributeID int64 `json:"attributeId,omitempty"` // Calendar Id, can be second parameter only and only in combination with userId CalendarID int64 `json:"calendarId,omitempty"` // Device Id, can be first parameter or second only in combination with userId DeviceID int64 `json:"deviceId,omitempty"` // Driver Id, can be second parameter only DriverID int64 `json:"driverId,omitempty"` // Geofence Id, can be second parameter only GeofenceID int64 `json:"geofenceId,omitempty"` // Group Id, can be first parameter or second only in combination with userId GroupID int64 `json:"groupId,omitempty"` // User Id, can be second parameter only and only in combination with userId ManagedUserID int64 `json:"managedUserId,omitempty"` // User Id, can be only first parameter UserID int64 `json:"userId,omitempty"` }
Permission This is a permission map that contain two object indexes. It is used to link/unlink objects. Order is important. Example: { deviceId:8, geofenceId: 16 }
swagger:model Permission
func (*Permission) ContextValidate ¶
ContextValidate validates this permission based on context it is used
func (*Permission) MarshalBinary ¶
func (m *Permission) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Permission) UnmarshalBinary ¶
func (m *Permission) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Position ¶
type Position struct { // accuracy Accuracy float64 `json:"accuracy,omitempty"` // address Address string `json:"address,omitempty"` // altitude Altitude float64 `json:"altitude,omitempty"` // attributes Attributes interface{} `json:"attributes,omitempty"` // course Course float64 `json:"course,omitempty"` // device Id DeviceID int64 `json:"deviceId,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time DeviceTime strfmt.DateTime `json:"deviceTime,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time FixTime strfmt.DateTime `json:"fixTime,omitempty"` // id ID int64 `json:"id,omitempty"` // latitude Latitude float64 `json:"latitude,omitempty"` // longitude Longitude float64 `json:"longitude,omitempty"` // network Network interface{} `json:"network,omitempty"` // outdated Outdated bool `json:"outdated,omitempty"` // protocol Protocol string `json:"protocol,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time ServerTime strfmt.DateTime `json:"serverTime,omitempty"` // in knots Speed float64 `json:"speed,omitempty"` // valid Valid bool `json:"valid,omitempty"` }
Position position
swagger:model Position
func (*Position) ContextValidate ¶
ContextValidate validates this position based on context it is used
func (*Position) MarshalBinary ¶
MarshalBinary interface implementation
func (*Position) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ReportStops ¶
type ReportStops struct { // address Address string `json:"address,omitempty"` // device Id DeviceID int64 `json:"deviceId,omitempty"` // device name DeviceName string `json:"deviceName,omitempty"` // duration Duration int64 `json:"duration,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time EndTime strfmt.DateTime `json:"endTime,omitempty"` // engine hours EngineHours int64 `json:"engineHours,omitempty"` // lat Lat float64 `json:"lat,omitempty"` // lon Lon float64 `json:"lon,omitempty"` // in liters SpentFuel float64 `json:"spentFuel,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time StartTime strfmt.DateTime `json:"startTime,omitempty"` }
ReportStops report stops
swagger:model ReportStops
func (*ReportStops) ContextValidate ¶
ContextValidate validates this report stops based on context it is used
func (*ReportStops) MarshalBinary ¶
func (m *ReportStops) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReportStops) UnmarshalBinary ¶
func (m *ReportStops) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReportSummary ¶
type ReportSummary struct { // in knots AverageSpeed float64 `json:"averageSpeed,omitempty"` // device Id DeviceID int64 `json:"deviceId,omitempty"` // device name DeviceName string `json:"deviceName,omitempty"` // in meters Distance float64 `json:"distance,omitempty"` // engine hours EngineHours int64 `json:"engineHours,omitempty"` // in knots MaxSpeed float64 `json:"maxSpeed,omitempty"` // in liters SpentFuel float64 `json:"spentFuel,omitempty"` }
ReportSummary report summary
swagger:model ReportSummary
func (*ReportSummary) ContextValidate ¶
ContextValidate validates this report summary based on context it is used
func (*ReportSummary) MarshalBinary ¶
func (m *ReportSummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReportSummary) UnmarshalBinary ¶
func (m *ReportSummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReportTrips ¶
type ReportTrips struct { // in knots AverageSpeed float64 `json:"averageSpeed,omitempty"` // device Id DeviceID int64 `json:"deviceId,omitempty"` // device name DeviceName string `json:"deviceName,omitempty"` // in meters Distance float64 `json:"distance,omitempty"` // driver name DriverName string `json:"driverName,omitempty"` // driver unique Id DriverUniqueID int64 `json:"driverUniqueId,omitempty"` // duration Duration int64 `json:"duration,omitempty"` // end address EndAddress string `json:"endAddress,omitempty"` // end lat EndLat float64 `json:"endLat,omitempty"` // end lon EndLon float64 `json:"endLon,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time EndTime strfmt.DateTime `json:"endTime,omitempty"` // in knots MaxSpeed float64 `json:"maxSpeed,omitempty"` // in liters SpentFuel float64 `json:"spentFuel,omitempty"` // start address StartAddress string `json:"startAddress,omitempty"` // start lat StartLat float64 `json:"startLat,omitempty"` // start lon StartLon float64 `json:"startLon,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time StartTime strfmt.DateTime `json:"startTime,omitempty"` }
ReportTrips report trips
swagger:model ReportTrips
func (*ReportTrips) ContextValidate ¶
ContextValidate validates this report trips based on context it is used
func (*ReportTrips) MarshalBinary ¶
func (m *ReportTrips) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReportTrips) UnmarshalBinary ¶
func (m *ReportTrips) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Server ¶
type Server struct { // attributes Attributes interface{} `json:"attributes,omitempty"` // bing key BingKey string `json:"bingKey,omitempty"` // coordinate format CoordinateFormat string `json:"coordinateFormat,omitempty"` // device readonly DeviceReadonly bool `json:"deviceReadonly,omitempty"` // force settings ForceSettings bool `json:"forceSettings,omitempty"` // id ID int64 `json:"id,omitempty"` // latitude Latitude float64 `json:"latitude,omitempty"` // limit commands LimitCommands bool `json:"limitCommands,omitempty"` // longitude Longitude float64 `json:"longitude,omitempty"` // map Map string `json:"map,omitempty"` // map Url MapURL string `json:"mapUrl,omitempty"` // poi layer PoiLayer string `json:"poiLayer,omitempty"` // readonly Readonly bool `json:"readonly,omitempty"` // registration Registration bool `json:"registration,omitempty"` // twelve hour format TwelveHourFormat bool `json:"twelveHourFormat,omitempty"` // version Version string `json:"version,omitempty"` // zoom Zoom int64 `json:"zoom,omitempty"` }
Server server
swagger:model Server
func (*Server) ContextValidate ¶
ContextValidate validates this server based on context it is used
func (*Server) MarshalBinary ¶
MarshalBinary interface implementation
func (*Server) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Statistics ¶
type Statistics struct { // active devices ActiveDevices int64 `json:"activeDevices,omitempty"` // active users ActiveUsers int64 `json:"activeUsers,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time CaptureTime strfmt.DateTime `json:"captureTime,omitempty"` // messages received MessagesReceived int64 `json:"messagesReceived,omitempty"` // messages stored MessagesStored int64 `json:"messagesStored,omitempty"` // requests Requests int64 `json:"requests,omitempty"` }
Statistics statistics
swagger:model Statistics
func (*Statistics) ContextValidate ¶
ContextValidate validates this statistics based on context it is used
func (*Statistics) MarshalBinary ¶
func (m *Statistics) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Statistics) UnmarshalBinary ¶
func (m *Statistics) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type User ¶
type User struct { // administrator Administrator bool `json:"administrator,omitempty"` // attributes Attributes interface{} `json:"attributes,omitempty"` // coordinate format CoordinateFormat string `json:"coordinateFormat,omitempty"` // device limit DeviceLimit int64 `json:"deviceLimit,omitempty"` // device readonly DeviceReadonly bool `json:"deviceReadonly,omitempty"` // disabled Disabled bool `json:"disabled,omitempty"` // email Email string `json:"email,omitempty"` // in IS0 8601 format. eg. `1963-11-22T18:30:00Z` // Format: date-time ExpirationTime strfmt.DateTime `json:"expirationTime,omitempty"` // id ID int64 `json:"id,omitempty"` // latitude Latitude float64 `json:"latitude,omitempty"` // limit commands LimitCommands bool `json:"limitCommands,omitempty"` // longitude Longitude float64 `json:"longitude,omitempty"` // map Map string `json:"map,omitempty"` // name Name string `json:"name,omitempty"` // password Password string `json:"password,omitempty"` // phone Phone string `json:"phone,omitempty"` // poi layer PoiLayer string `json:"poiLayer,omitempty"` // readonly Readonly bool `json:"readonly,omitempty"` // token Token string `json:"token,omitempty"` // twelve hour format TwelveHourFormat bool `json:"twelveHourFormat,omitempty"` // user limit UserLimit int64 `json:"userLimit,omitempty"` // zoom Zoom int64 `json:"zoom,omitempty"` }
User user
swagger:model User
func (*User) ContextValidate ¶
ContextValidate validates this user based on context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation