operations

package
v0.0.0-...-e633676 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDrom

type AddDrom struct {
	ConfigurationName string
}

AddDrom is

func (AddDrom) Start

func (a AddDrom) Start(deviceID ...string)

Start is

type AddIOTLabel

type AddIOTLabel struct {
	Label     string
	LabelType string
	DeviceID  []string
	// contains filtered or unexported fields
}

AddIOTLabel is

func (AddIOTLabel) Start

func (a AddIOTLabel) Start()

Start is

type AddLabel

type AddLabel struct{}

AddLabel is

func (AddLabel) Start

func (a AddLabel) Start(deviceID ...string)

Start 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.

func (ClearApp) Start

func (c ClearApp) Start(devicesID ...string)

Start is the function of ClearApp. If you serialize from outside, you get "deviceID"

type ClearLicense

type ClearLicense struct {
}

ClearLicense is

func (ClearLicense) Start

func (d ClearLicense) Start(deviceID ...string)

Start is

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 DeleteDrom

type DeleteDrom struct {
}

DeleteDrom is

func (DeleteDrom) Start

func (d DeleteDrom) Start(deviceID ...string)

Start is

type DownloadLogs

type DownloadLogs struct{}

DownloadLogs is

func (DownloadLogs) Start

func (d DownloadLogs) Start(downloadLogDeviceID ...string)

Start is

type GetLogDevices

type GetLogDevices struct {
	DelayTime time.Duration
}

GetLogDevices is

func (GetLogDevices) Start

func (g GetLogDevices) Start(getLogDeviceID ...string)

Start is

type ModeSendOperation

type ModeSendOperation struct{}

ModeSendOperation is

func (ModeSendOperation) Start

func (m ModeSendOperation) Start(sendProfile SendProfileWant)

Start is

type MoveArea

type MoveArea struct{}

MoveArea to be edited

func (MoveArea) Start

func (m MoveArea) Start(areaName string)

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

func (OfflineLog) Start

func (o OfflineLog) Start()

Start is

type OpenPager

type OpenPager struct {
	// contains filtered or unexported fields
}

OpenPager is

func (OpenPager) Start

func (o OpenPager) Start()

Start is

type Operations

type Operations struct {
}

Operations 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

func (PushApplicationExternal) Start

func (p PushApplicationExternal) Start()

Start is

type RefreshGateway

type RefreshGateway struct {
	DelayTime    time.Duration
	RefreshParam string
}

RefreshGateway is

func (RefreshGateway) Start

func (r RefreshGateway) Start(devicesID ...string)

Start 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 SendMessages

type SendMessages struct {
	SendMessageRequirements
}

SendMessages is

func (SendMessages) Start

func (s SendMessages) Start(deviceID ...string)

Start is

type SendProfileWant

type SendProfileWant struct {
	ModeCode   string
	PolicyCode string
	DevicesID  []string
	ModeName   string
	PolicyName string
}

SendProfileWant is

type StartApp

type StartApp struct {
	StartPackageName string
	DelayTime        time.Duration
	// contains filtered or unexported fields
}

StartApp is

func (StartApp) Start

func (s StartApp) Start(devicesID ...string)

Start is

type Starter

type Starter interface {
	Start(deviceID ...string)
}

Starter is operations interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL