ioti

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Overview

Package ioti 包含IoTI API相关结构体

https://open.taobao.com/API.htm?docId=46348&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfigResponse

type AgentConfigResponse struct {
	// 调用方法
	Method string `json:"method,omitempty" xml:"method,omitempty"`
	// 返回编码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 返回消息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 消息体
	Result *ConfigResult `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AgentConfigResponse 结构体

type AlibabaItAlbumDeviceSendimageAPIRequest

type AlibabaItAlbumDeviceSendimageAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaItAlbumDeviceSendimageAPIRequest 相框设备厂测刷图接口 API请求 alibaba.it.album.device.sendimage

提供传入电子相框设备mac,mac需属于厂测白名单设备,将设备刷新为系统默认的厂测图片

func NewAlibabaItAlbumDeviceSendimageRequest

func NewAlibabaItAlbumDeviceSendimageRequest() *AlibabaItAlbumDeviceSendimageAPIRequest

NewAlibabaItAlbumDeviceSendimageRequest 初始化AlibabaItAlbumDeviceSendimageAPIRequest对象

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetApiMethodName

func (r AlibabaItAlbumDeviceSendimageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetMac

GetMac Mac Getter

func (*AlibabaItAlbumDeviceSendimageAPIRequest) SetMac

SetMac is Mac Setter 下发图片mac地址

type AlibabaItAlbumDeviceSendimageAPIResponse

type AlibabaItAlbumDeviceSendimageAPIResponse struct {
	model.CommonResponse
	AlibabaItAlbumDeviceSendimageAPIResponseModel
}

AlibabaItAlbumDeviceSendimageAPIResponse 相框设备厂测刷图接口 API返回值 alibaba.it.album.device.sendimage

提供传入电子相框设备mac,mac需属于厂测白名单设备,将设备刷新为系统默认的厂测图片

type AlibabaItAlbumDeviceSendimageAPIResponseModel

type AlibabaItAlbumDeviceSendimageAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_album_device_sendimage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回错误码与参数
	Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"`
}

AlibabaItAlbumDeviceSendimageAPIResponseModel is 相框设备厂测刷图接口 成功返回结果

type AlibabaItCloudliveGetagentconfigAPIRequest

type AlibabaItCloudliveGetagentconfigAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaItCloudliveGetagentconfigAPIRequest 线上巡店Agent获取配置 API请求 alibaba.it.cloudlive.getagentconfig

线上巡店应用,外部Agent设备获取设备配置信息,根据配置信息链接mqtt,跟云端进行进一步的消息通信。

func NewAlibabaItCloudliveGetagentconfigRequest

func NewAlibabaItCloudliveGetagentconfigRequest() *AlibabaItCloudliveGetagentconfigAPIRequest

NewAlibabaItCloudliveGetagentconfigRequest 初始化AlibabaItCloudliveGetagentconfigAPIRequest对象

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetAgentId

GetAgentId AgentId Getter

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetAgentIp

GetAgentIp AgentIp Getter

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetSignature

GetSignature Signature Getter

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetTimeStamp

GetTimeStamp TimeStamp Getter

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetAgentId

SetAgentId is AgentId Setter agent标识信息

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetAgentIp

SetAgentIp is AgentIp Setter 设备所在IP地址

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetSignature

func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetSignature(_signature string) error

SetSignature is Signature Setter 签名

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetTimeStamp

func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetTimeStamp(_timeStamp int64) error

SetTimeStamp is TimeStamp Setter 时间戳

type AlibabaItCloudliveGetagentconfigAPIResponse

type AlibabaItCloudliveGetagentconfigAPIResponse struct {
	model.CommonResponse
	AlibabaItCloudliveGetagentconfigAPIResponseModel
}

AlibabaItCloudliveGetagentconfigAPIResponse 线上巡店Agent获取配置 API返回值 alibaba.it.cloudlive.getagentconfig

线上巡店应用,外部Agent设备获取设备配置信息,根据配置信息链接mqtt,跟云端进行进一步的消息通信。

type AlibabaItCloudliveGetagentconfigAPIResponseModel

type AlibabaItCloudliveGetagentconfigAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_cloudlive_getagentconfig_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 消息内容
	RespContent *AgentConfigResponse `json:"resp_content,omitempty" xml:"resp_content,omitempty"`
}

AlibabaItCloudliveGetagentconfigAPIResponseModel is 线上巡店Agent获取配置 成功返回结果

type AlibabaItEslEslimageSendimageAPIRequest

type AlibabaItEslEslimageSendimageAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaItEslEslimageSendimageAPIRequest 下发厂测初始化图片 API请求 alibaba.it.esl.eslimage.sendimage

工厂对生产出的电子价签进行全流程功能测试,能将出场图片通过ESL系统初始化到电子价签中

func NewAlibabaItEslEslimageSendimageRequest

func NewAlibabaItEslEslimageSendimageRequest() *AlibabaItEslEslimageSendimageAPIRequest

NewAlibabaItEslEslimageSendimageRequest 初始化AlibabaItEslEslimageSendimageAPIRequest对象

func (AlibabaItEslEslimageSendimageAPIRequest) GetApiMethodName

func (r AlibabaItEslEslimageSendimageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslEslimageSendimageAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslEslimageSendimageAPIRequest) GetMac

GetMac Mac Getter

func (*AlibabaItEslEslimageSendimageAPIRequest) SetMac

SetMac is Mac Setter 价签地址

type AlibabaItEslEslimageSendimageAPIResponse

type AlibabaItEslEslimageSendimageAPIResponse struct {
	model.CommonResponse
	AlibabaItEslEslimageSendimageAPIResponseModel
}

AlibabaItEslEslimageSendimageAPIResponse 下发厂测初始化图片 API返回值 alibaba.it.esl.eslimage.sendimage

工厂对生产出的电子价签进行全流程功能测试,能将出场图片通过ESL系统初始化到电子价签中

type AlibabaItEslEslimageSendimageAPIResponseModel

type AlibabaItEslEslimageSendimageAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_eslimage_sendimage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultmsg
	Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"`
}

AlibabaItEslEslimageSendimageAPIResponseModel is 下发厂测初始化图片 成功返回结果

type AlibabaItEslEslimageShowimagecommonAPIRequest

type AlibabaItEslEslimageShowimagecommonAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaItEslEslimageShowimagecommonAPIRequest 对混合云提供的刷图接口 API请求 alibaba.it.esl.eslimage.showimagecommon

混合云使用,提供给isv和我们混合云环境部署的应用刷图

func NewAlibabaItEslEslimageShowimagecommonRequest

func NewAlibabaItEslEslimageShowimagecommonRequest() *AlibabaItEslEslimageShowimagecommonAPIRequest

NewAlibabaItEslEslimageShowimagecommonRequest 初始化AlibabaItEslEslimageShowimagecommonAPIRequest对象

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent

GetContent Content Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent2

GetContent2 Content2 Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsCompress

GetIsCompress IsCompress Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsManual

GetIsManual IsManual Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetMac

GetMac Mac Getter

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent

SetContent is Content Setter 图片2的base64编码,图片要和价签大小一致

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent2

SetContent2 is Content2 Setter 图片的base64编码,图片要和价签大小一致

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsCompress

func (r *AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsCompress(_isCompress string) error

SetIsCompress is IsCompress Setter 是否压缩,默认不传,字符串:yes,no

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsManual

SetIsManual is IsManual Setter 是否手动刷图,默认不传,字符串:true,false

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetMac

SetMac is Mac Setter ma地址

type AlibabaItEslEslimageShowimagecommonAPIResponse

type AlibabaItEslEslimageShowimagecommonAPIResponse struct {
	model.CommonResponse
	AlibabaItEslEslimageShowimagecommonAPIResponseModel
}

AlibabaItEslEslimageShowimagecommonAPIResponse 对混合云提供的刷图接口 API返回值 alibaba.it.esl.eslimage.showimagecommon

混合云使用,提供给isv和我们混合云环境部署的应用刷图

type AlibabaItEslEslimageShowimagecommonAPIResponseModel

type AlibabaItEslEslimageShowimagecommonAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_eslimage_showimagecommon_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultmsg
	Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"`
}

AlibabaItEslEslimageShowimagecommonAPIResponseModel is 对混合云提供的刷图接口 成功返回结果

type AlibabaItEslSendledAPIRequest

type AlibabaItEslSendledAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaItEslSendledAPIRequest 厂测LED控制 API请求 alibaba.it.esl.sendled

针对厂测生产的的价签,增加led闪灯的接口,进行led 闪灯测试

func NewAlibabaItEslSendledRequest

func NewAlibabaItEslSendledRequest() *AlibabaItEslSendledAPIRequest

NewAlibabaItEslSendledRequest 初始化AlibabaItEslSendledAPIRequest对象

func (AlibabaItEslSendledAPIRequest) GetApiMethodName

func (r AlibabaItEslSendledAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslSendledAPIRequest) GetApiParams

func (r AlibabaItEslSendledAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslSendledAPIRequest) GetMacAp

GetMacAp MacAp Getter

func (AlibabaItEslSendledAPIRequest) GetType

GetType Type Getter

func (*AlibabaItEslSendledAPIRequest) SetMacAp

func (r *AlibabaItEslSendledAPIRequest) SetMacAp(_macAp string) error

SetMacAp is MacAp Setter mac

func (*AlibabaItEslSendledAPIRequest) SetType

func (r *AlibabaItEslSendledAPIRequest) SetType(_type string) error

SetType is Type Setter 0、1、2、3:关蓝绿红

type AlibabaItEslSendledAPIResponse

type AlibabaItEslSendledAPIResponse struct {
	model.CommonResponse
	AlibabaItEslSendledAPIResponseModel
}

AlibabaItEslSendledAPIResponse 厂测LED控制 API返回值 alibaba.it.esl.sendled

针对厂测生产的的价签,增加led闪灯的接口,进行led 闪灯测试

type AlibabaItEslSendledAPIResponseModel

type AlibabaItEslSendledAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_sendled_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Can not find Corresponding AP MAC with ESL
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaItEslSendledAPIResponseModel is 厂测LED控制 成功返回结果

type AlibabaItEslSendotaAPIRequest

type AlibabaItEslSendotaAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaItEslSendotaAPIRequest 电子价签ota接口 API请求 alibaba.it.esl.sendota

厂测接口,电子价签ota接口

func NewAlibabaItEslSendotaRequest

func NewAlibabaItEslSendotaRequest() *AlibabaItEslSendotaAPIRequest

NewAlibabaItEslSendotaRequest 初始化AlibabaItEslSendotaAPIRequest对象

func (AlibabaItEslSendotaAPIRequest) GetApiMethodName

func (r AlibabaItEslSendotaAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslSendotaAPIRequest) GetApiParams

func (r AlibabaItEslSendotaAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslSendotaAPIRequest) GetMacAp

GetMacAp MacAp Getter

func (AlibabaItEslSendotaAPIRequest) GetOtaDataBase64String

func (r AlibabaItEslSendotaAPIRequest) GetOtaDataBase64String() string

GetOtaDataBase64String OtaDataBase64String Getter

func (*AlibabaItEslSendotaAPIRequest) SetMacAp

func (r *AlibabaItEslSendotaAPIRequest) SetMacAp(_macAp string) error

SetMacAp is MacAp Setter mac

func (*AlibabaItEslSendotaAPIRequest) SetOtaDataBase64String

func (r *AlibabaItEslSendotaAPIRequest) SetOtaDataBase64String(_otaDataBase64String string) error

SetOtaDataBase64String is OtaDataBase64String Setter base64的ota包

type AlibabaItEslSendotaAPIResponse

type AlibabaItEslSendotaAPIResponse struct {
	model.CommonResponse
	AlibabaItEslSendotaAPIResponseModel
}

AlibabaItEslSendotaAPIResponse 电子价签ota接口 API返回值 alibaba.it.esl.sendota

厂测接口,电子价签ota接口

type AlibabaItEslSendotaAPIResponseModel

type AlibabaItEslSendotaAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_sendota_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Can not find Corresponding AP MAC with ESL
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaItEslSendotaAPIResponseModel is 电子价签ota接口 成功返回结果

type ConfigResult

type ConfigResult struct {
	// IPC列表
	Ipcs []string `json:"ipcs,omitempty" xml:"ipcs>string,omitempty"`
	// agent标识
	AgentId string `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 连接客户端id
	ClientId string `json:"client_id,omitempty" xml:"client_id,omitempty"`
	// 签名
	Signature string `json:"signature,omitempty" xml:"signature,omitempty"`
	// 上报消息topic
	MqttUpTopic string `json:"mqtt_up_topic,omitempty" xml:"mqtt_up_topic,omitempty"`
	// 通道类型
	ChannelType string `json:"channel_type,omitempty" xml:"channel_type,omitempty"`
	// broker代理地址
	BrokerUrl string `json:"broker_url,omitempty" xml:"broker_url,omitempty"`
	// 下发消息topic
	MqttDownTopic string `json:"mqtt_down_topic,omitempty" xml:"mqtt_down_topic,omitempty"`
	// 访问accesskey
	AccessKey string `json:"access_key,omitempty" xml:"access_key,omitempty"`
	// CPU上线
	CpuUpperLimit string `json:"cpu_upper_limit,omitempty" xml:"cpu_upper_limit,omitempty"`
	// 是否保活
	KeepAlive int64 `json:"keep_alive,omitempty" xml:"keep_alive,omitempty"`
	// 最大推流数量
	MaxStreamNumber int64 `json:"max_stream_number,omitempty" xml:"max_stream_number,omitempty"`
	// 上报时间间隔
	ReportInterval int64 `json:"report_interval,omitempty" xml:"report_interval,omitempty"`
}

ConfigResult 结构体

Jump to

Keyboard shortcuts

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