Documentation
¶
Index ¶
- type AddDrom
- type AddIOTLabel
- type AddLabel
- type ClearApp
- type ClearLicense
- type CreateWorkGroup
- type DeleteDrom
- type DownloadLogs
- type GetLogDevices
- type ModeSendOperation
- type MoveArea
- type OfflineLog
- type OpenPager
- type Operations
- type OtaBaseOp
- type OtaDeviceArray
- type OtaOp
- type PushApplicationExternal
- type RefreshGateway
- type SendMessageRequirements
- type SendMessages
- type SendProfileWant
- type StartApp
- type Starter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddIOTLabel ¶
type AddIOTLabel struct { Label string LabelType string DeviceID []string // contains filtered or unexported fields }
AddIOTLabel is
type ClearApp ¶
type ClearApp struct { ClearPackageName string // contains filtered or unexported fields }
ClearApp is trying to delete the data of the desired application, found in the specified "deviceID" s.
type CreateWorkGroup ¶
type CreateWorkGroup struct{}
CreateWorkGroup creates a new user group and identifies the "deviceIDs" in the given file.
func (CreateWorkGroup) Start ¶
func (c CreateWorkGroup) Start()
Start is the function of ClearApp. This function creates a group with the name of the parameter given when the program is run.
type GetLogDevices ¶
GetLogDevices is
type ModeSendOperation ¶
type ModeSendOperation struct{}
ModeSendOperation is
func (ModeSendOperation) Start ¶
func (m ModeSendOperation) Start(sendProfile SendProfileWant)
Start is
type OfflineLog ¶
type OfflineLog struct { DeviceID []string // contains filtered or unexported fields }
OfflineLog is
func (OfflineLog) SetOfflineLogDeviceID ¶
func (o OfflineLog) SetOfflineLogDeviceID(deviceID ...string)
SetOfflineLogDeviceID is
type OtaBaseOp ¶
type OtaBaseOp struct { Imei string PushApplication int PushTime time.Time StartApplication int StartTime time.Time ControlOta int ControlTime time.Time }
OtaBaseOp contains the structure types associated with the data base of the device to be built. The information here can be entered by the user. At the same time, the devices operate on this information. Note: The numbers 0 - 1 - 2 in the following values have the following meanings;
0: Not Running, 1: Running, 2: Finish
The values taken in this structure are as follows;
Imei : The unique number of the device. With this information, the device performs the rest queries. PushApplication : Takes values from 0 to 1 - 2. The device performs a data check of the data. PushTime : Shows the time of the last operation in the PushApplication section. StartApplication : Takes values from 0 to 1 - 2. It checks the status of the application that is running on the device. StartTime : Indicates the time of the last operation in StartApplication. ControlOta : takes values from 0 to 1 - 2. The device performs fmrware sine status check. ControlTime : Shows the time of the last operation in ControlOta.
type OtaDeviceArray ¶
type OtaDeviceArray []OtaBaseOp
OtaDeviceArray is the type of structure used to retrieve many OtaBaseOp structures. The start function waits for this type. Transactions occur with this type. You need to enter an OtaBaseOp with at least the Imei number into this loop. Example Base:
otaDeviceArray := util.OtaDeviceArray{ util.OtaBaseOp{Imei: "867377020740787"}, util.OtaBaseOp{Imei: "867377020747089"}}
type OtaOp ¶
type OtaOp struct {
// contains filtered or unexported fields
}
OtaOp builds a roof for automobile util. The data found here is very important for OTA operation. With this structure, important data for OTA functions are communicated in a common way.
dataBase : The common * sql.DB structure to be used in database util. tableName : is the toblo name for OTA. databaseName : The database created for OTA is unknown. otaUpdaterApplicationCode : this value contains the application's unique id. The application submission process is performed with this ID otaUpdaterPacketName : OTA hosting variable hosting application. otaUpdaterVersion : The version of OTA update application. otaUpdaterVersionCode : The version code of OTA update application. osDisplay : The name of the firmware to be migrated.
func (OtaOp) Start ¶
func (o OtaOp) Start(otaDevices OtaDeviceArray)
Start is: It is the point where the start ota application starts. It receives data of type OtaDeviceArray which is at least the Imei number from the outside.
type PushApplicationExternal ¶
type PushApplicationExternal struct { ApplicationCode string DeviceID []string URL string Version int }
PushApplicationExternal is
type RefreshGateway ¶
RefreshGateway is
type SendMessageRequirements ¶
type SendMessageRequirements struct { Message string MessageType string TimeType string Time int64 StartTime int64 EndTime int64 StepMinute int SendFrequencyMinute int WorkingSetKey string }
SendMessageRequirements is
type SendProfileWant ¶
type SendProfileWant struct { ModeCode string PolicyCode string DevicesID []string ModeName string PolicyName string }
SendProfileWant is