yunos

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package yunos 包含YunOS相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAliyunCosmoGatewayInvokeAPIRequest added in v1.3.4

func ReleaseAliyunCosmoGatewayInvokeAPIRequest(v *AliyunCosmoGatewayInvokeAPIRequest)

ReleaseAliyunCosmoGatewayInvokeAPIRequest 将 AliyunCosmoGatewayInvokeAPIRequest 放入 sync.Pool

func ReleaseAliyunCosmoGatewayInvokeAPIResponse added in v1.3.4

func ReleaseAliyunCosmoGatewayInvokeAPIResponse(v *AliyunCosmoGatewayInvokeAPIResponse)

ReleaseAliyunCosmoGatewayInvokeAPIResponse 将 AliyunCosmoGatewayInvokeAPIResponse 保存到 sync.Pool

func ReleaseDpResult added in v1.3.4

func ReleaseDpResult(v *DpResult)

ReleaseDpResult 释放DpResult

func ReleaseRdamContext added in v1.3.4

func ReleaseRdamContext(v *RdamContext)

ReleaseRdamContext 释放RdamContext

func ReleaseRdamGenericRequest added in v1.3.4

func ReleaseRdamGenericRequest(v *RdamGenericRequest)

ReleaseRdamGenericRequest 释放RdamGenericRequest

func ReleaseRdamResponse added in v1.3.4

func ReleaseRdamResponse(v *RdamResponse)

ReleaseRdamResponse 释放RdamResponse

func ReleaseYunosCosmoDataPushAPIRequest added in v1.3.4

func ReleaseYunosCosmoDataPushAPIRequest(v *YunosCosmoDataPushAPIRequest)

ReleaseYunosCosmoDataPushAPIRequest 将 YunosCosmoDataPushAPIRequest 放入 sync.Pool

func ReleaseYunosCosmoDataPushAPIResponse added in v1.3.4

func ReleaseYunosCosmoDataPushAPIResponse(v *YunosCosmoDataPushAPIResponse)

ReleaseYunosCosmoDataPushAPIResponse 将 YunosCosmoDataPushAPIResponse 保存到 sync.Pool

Types

type AliyunCosmoGatewayInvokeAPIRequest added in v1.2.0

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

AliyunCosmoGatewayInvokeAPIRequest alios cosmo服务调用 API请求 aliyun.cosmo.gateway.invoke

AliOS cosmo服务分发平台对外调用接口

func GetAliyunCosmoGatewayInvokeAPIRequest added in v1.3.4

func GetAliyunCosmoGatewayInvokeAPIRequest() *AliyunCosmoGatewayInvokeAPIRequest

GetAliyunCosmoGatewayInvokeRequest 从 sync.Pool 获取 AliyunCosmoGatewayInvokeAPIRequest

func NewAliyunCosmoGatewayInvokeRequest

func NewAliyunCosmoGatewayInvokeRequest() *AliyunCosmoGatewayInvokeAPIRequest

NewAliyunCosmoGatewayInvokeRequest 初始化AliyunCosmoGatewayInvokeAPIRequest对象

func (AliyunCosmoGatewayInvokeAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunCosmoGatewayInvokeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunCosmoGatewayInvokeAPIRequest) GetApiParams added in v1.2.0

func (r AliyunCosmoGatewayInvokeAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunCosmoGatewayInvokeAPIRequest) GetContext added in v1.2.0

GetContext Context Getter

func (AliyunCosmoGatewayInvokeAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AliyunCosmoGatewayInvokeAPIRequest) GetRdamRequest added in v1.2.0

GetRdamRequest RdamRequest Getter

func (*AliyunCosmoGatewayInvokeAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AliyunCosmoGatewayInvokeAPIRequest) SetContext added in v1.2.0

func (r *AliyunCosmoGatewayInvokeAPIRequest) SetContext(_context *RdamContext) error

SetContext is Context Setter 请求上下文参数

func (*AliyunCosmoGatewayInvokeAPIRequest) SetRdamRequest added in v1.2.0

func (r *AliyunCosmoGatewayInvokeAPIRequest) SetRdamRequest(_rdamRequest *RdamGenericRequest) error

SetRdamRequest is RdamRequest Setter 请求对象

type AliyunCosmoGatewayInvokeAPIResponse

type AliyunCosmoGatewayInvokeAPIResponse struct {
	model.CommonResponse
	AliyunCosmoGatewayInvokeAPIResponseModel
}

AliyunCosmoGatewayInvokeAPIResponse alios cosmo服务调用 API返回值 aliyun.cosmo.gateway.invoke

AliOS cosmo服务分发平台对外调用接口

func GetAliyunCosmoGatewayInvokeAPIResponse added in v1.3.4

func GetAliyunCosmoGatewayInvokeAPIResponse() *AliyunCosmoGatewayInvokeAPIResponse

GetAliyunCosmoGatewayInvokeAPIResponse 从 sync.Pool 获取 AliyunCosmoGatewayInvokeAPIResponse

func (*AliyunCosmoGatewayInvokeAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AliyunCosmoGatewayInvokeAPIResponseModel added in v1.2.0

type AliyunCosmoGatewayInvokeAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_cosmo_gateway_invoke_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *RdamResponse `json:"result,omitempty" xml:"result,omitempty"`
}

AliyunCosmoGatewayInvokeAPIResponseModel is alios cosmo服务调用 成功返回结果

func (*AliyunCosmoGatewayInvokeAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type DpResult

type DpResult struct {
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

DpResult 结构体

func GetDpResult added in v1.3.4

func GetDpResult() *DpResult

GetDpResult() 从对象池中获取DpResult

type RdamContext

type RdamContext struct {
}

RdamContext 结构体

func GetRdamContext added in v1.3.4

func GetRdamContext() *RdamContext

GetRdamContext() 从对象池中获取RdamContext

type RdamGenericRequest

type RdamGenericRequest struct {
	// 请求标示
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
}

RdamGenericRequest 结构体

func GetRdamGenericRequest added in v1.3.4

func GetRdamGenericRequest() *RdamGenericRequest

GetRdamGenericRequest() 从对象池中获取RdamGenericRequest

type RdamResponse

type RdamResponse struct {
	// dataList
	DataList []string `json:"data_list,omitempty" xml:"data_list>string,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// more
	More string `json:"more,omitempty" xml:"more,omitempty"`
	// traceId
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// biz_msg
	BizMsg string `json:"biz_msg,omitempty" xml:"biz_msg,omitempty"`
	// code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// biz_code
	BizCode int64 `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
}

RdamResponse 结构体

func GetRdamResponse added in v1.3.4

func GetRdamResponse() *RdamResponse

GetRdamResponse() 从对象池中获取RdamResponse

type YunosCosmoDataPushAPIRequest added in v1.2.0

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

YunosCosmoDataPushAPIRequest COSMO-PUSH模式数据接入 API请求 yunos.cosmo.data.push

YunOS提供外部数据源接入,并输出到多端设备上,该接口提供了PUSH模式的数据接入

func GetYunosCosmoDataPushAPIRequest added in v1.3.4

func GetYunosCosmoDataPushAPIRequest() *YunosCosmoDataPushAPIRequest

GetYunosCosmoDataPushRequest 从 sync.Pool 获取 YunosCosmoDataPushAPIRequest

func NewYunosCosmoDataPushRequest

func NewYunosCosmoDataPushRequest() *YunosCosmoDataPushAPIRequest

NewYunosCosmoDataPushRequest 初始化YunosCosmoDataPushAPIRequest对象

func (YunosCosmoDataPushAPIRequest) GetApiMethodName added in v1.2.0

func (r YunosCosmoDataPushAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YunosCosmoDataPushAPIRequest) GetApiParams added in v1.2.0

func (r YunosCosmoDataPushAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (YunosCosmoDataPushAPIRequest) GetAppId added in v1.2.0

func (r YunosCosmoDataPushAPIRequest) GetAppId() string

GetAppId AppId Getter

func (YunosCosmoDataPushAPIRequest) GetJsonModel added in v1.2.0

func (r YunosCosmoDataPushAPIRequest) GetJsonModel() string

GetJsonModel JsonModel Getter

func (YunosCosmoDataPushAPIRequest) GetRawParams added in v1.2.8

func (r YunosCosmoDataPushAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*YunosCosmoDataPushAPIRequest) Reset added in v1.3.4

func (r *YunosCosmoDataPushAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*YunosCosmoDataPushAPIRequest) SetAppId added in v1.2.0

func (r *YunosCosmoDataPushAPIRequest) SetAppId(_appId string) error

SetAppId is AppId Setter 业务方数据源唯一标识,由COSMO平台颁发

func (*YunosCosmoDataPushAPIRequest) SetJsonModel added in v1.2.0

func (r *YunosCosmoDataPushAPIRequest) SetJsonModel(_jsonModel string) error

SetJsonModel is JsonModel Setter 业务方推送数据,List结构的JSON序列化字符串

type YunosCosmoDataPushAPIResponse

type YunosCosmoDataPushAPIResponse struct {
	model.CommonResponse
	YunosCosmoDataPushAPIResponseModel
}

YunosCosmoDataPushAPIResponse COSMO-PUSH模式数据接入 API返回值 yunos.cosmo.data.push

YunOS提供外部数据源接入,并输出到多端设备上,该接口提供了PUSH模式的数据接入

func GetYunosCosmoDataPushAPIResponse added in v1.3.4

func GetYunosCosmoDataPushAPIResponse() *YunosCosmoDataPushAPIResponse

GetYunosCosmoDataPushAPIResponse 从 sync.Pool 获取 YunosCosmoDataPushAPIResponse

func (*YunosCosmoDataPushAPIResponse) Reset added in v1.3.4

func (m *YunosCosmoDataPushAPIResponse) Reset()

Reset 清空结构体

type YunosCosmoDataPushAPIResponseModel added in v1.2.0

type YunosCosmoDataPushAPIResponseModel struct {
	XMLName xml.Name `xml:"yunos_cosmo_data_push_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *DpResult `json:"result,omitempty" xml:"result,omitempty"`
}

YunosCosmoDataPushAPIResponseModel is COSMO-PUSH模式数据接入 成功返回结果

func (*YunosCosmoDataPushAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

Jump to

Keyboard shortcuts

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