Documentation ¶
Index ¶
- func InitServer(newconfig ConfigStruct)
- type BaseResponseStruct
- func CancelSubTopicRequest(productKey string, topics ...string) *BaseResponseStruct
- func PubMessageToTopicRequest(productKey string, message string, topicFullName string, Qos int) *BaseResponseStruct
- func ServerOnlineRequest(productKey string) *BaseResponseStruct
- func SubTopicRequest(productKey string, subCallback string, topics ...string) *BaseResponseStruct
- type ConfigStruct
- type DevicePermitStruct
- func GrantDeviceRequest(productKey string, deviceName string, grantType string, topicFullName string) *DevicePermitStruct
- func ModifyDevicePermitByTopicRequest(productKey string, deviceName string, grantType string, topicFullName string) *DevicePermitStruct
- func ModifyDevicePermitRequest(productKey string, deviceName string, ruleID string, grantType string, ...) *DevicePermitStruct
- func RemoveDevicePermitByIDRequest(productKey string, deviceName string, ruleID string) *DevicePermitStruct
- type DevicePermitsStruct
- type RegisterDeviceStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitServer ¶
func InitServer(newconfig ConfigStruct)
Types ¶
type BaseResponseStruct ¶
type BaseResponseStruct struct { RequestID string `json:"RequestId"` Success bool `json:"Success"` Code string `json:"Code"` HostID string `json:"HostId"` Message string `json:"Message"` }
func CancelSubTopicRequest ¶
func CancelSubTopicRequest(productKey string, topics ...string) *BaseResponseStruct
func PubMessageToTopicRequest ¶
func PubMessageToTopicRequest(productKey string, message string, topicFullName string, Qos int) *BaseResponseStruct
func ServerOnlineRequest ¶
func ServerOnlineRequest(productKey string) *BaseResponseStruct
func SubTopicRequest ¶
func SubTopicRequest(productKey string, subCallback string, topics ...string) *BaseResponseStruct
type ConfigStruct ¶
type DevicePermitStruct ¶
type DevicePermitStruct struct { ErrorMessage string `json:"ErrorMessage"` ID int `json:"id"` BaseResponseStruct }
func GrantDeviceRequest ¶
func GrantDeviceRequest(productKey string, deviceName string, grantType string, topicFullName string) *DevicePermitStruct
func ModifyDevicePermitByTopicRequest ¶
func ModifyDevicePermitByTopicRequest(productKey string, deviceName string, grantType string, topicFullName string) *DevicePermitStruct
func RemoveDevicePermitByIDRequest ¶
func RemoveDevicePermitByIDRequest(productKey string, deviceName string, ruleID string) *DevicePermitStruct
type DevicePermitsStruct ¶
type DevicePermitsStruct struct { DevicePermissions struct { DevicePermission []struct { GrantType string `json:"GrantType"` ID int `json:"Id"` TopicFullName string `json:"TopicFullName"` TopicUserID int `json:"TopicUserId"` } `json:"DevicePermission"` } `json:"DevicePermissions"` BaseResponseStruct }
func GetDevicePermitsRequest ¶
func GetDevicePermitsRequest(productKey string, deviceName string) *DevicePermitsStruct
type RegisterDeviceStruct ¶
type RegisterDeviceStruct struct { DeviceID string `json:"DeviceId"` DeviceName string `json:"DeviceName"` DeviceSecret string `json:"DeviceSecret"` DeviceStatus string `json:"DeviceStatus"` ErrorMessage string `json:"ErrorMessage"` BaseResponseStruct }
func RegisterDeviceRequest ¶
func RegisterDeviceRequest(productKey string, deviceName string) *RegisterDeviceStruct
func (*RegisterDeviceStruct) GetClientInfoStruct ¶
func (s *RegisterDeviceStruct) GetClientInfoStruct(productKey string, productSecret string) iotclient.ClientInfoStruct
Click to show internal directories.
Click to hide internal directories.