rpcs

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2015 License: MIT Imports: 3 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsDeviceId

type ArgsDeviceId struct {
	Id uint64
}

type ArgsDeviceRegister

type ArgsDeviceRegister struct {
	ProductKey    string
	DeviceCode    string
	DeviceVersion string
}

device register args

type ArgsDeviceUpdate

type ArgsDeviceUpdate struct {
	DeviceIdentifier  string
	DeviceName        string
	DeviceDescription string
}

device update args

type ArgsGenerateDeviceAccessToken

type ArgsGenerateDeviceAccessToken ArgsDeviceId

type ArgsGetDeviceOnlineStatus

type ArgsGetDeviceOnlineStatus ArgsDeviceId

type ArgsGetOffline

type ArgsGetOffline ArgsDeviceId

type ArgsGetOnline

type ArgsGetOnline struct {
	Id                uint64
	ClientIP          string
	AccessRPCHost     string
	HeartbeatInterval uint32
}

type ArgsGetStatus

type ArgsGetStatus ArgsDeviceId

type ArgsHeartBeat

type ArgsHeartBeat struct {
	Id uint64
}

type ArgsOnEvent

type ArgsOnEvent struct {
	DeviceId  uint64
	TimeStamp uint64
	SubDevice uint16
	No        uint16
	Priority  uint16
	Params    []tlv.TLV
}

type ArgsPutData

type ArgsPutData struct {
	DeviceId  uint64
	Timestamp uint64
	Subdata   []protocol.SubData
}

type ArgsSendCommand

type ArgsSendCommand struct {
	DeviceId  uint64
	SubDevice uint16
	No        uint16
	Priority  uint16
	WaitTime  uint32
	Params    []tlv.TLV
}

type ArgsSetStatus

type ArgsSetStatus struct {
	DeviceId uint64
	Status   []protocol.SubData
}

type ArgsValidateDeviceAccessToken

type ArgsValidateDeviceAccessToken struct {
	Id          uint64
	AccessToken []byte
}

type ReplyEmptyResult

type ReplyEmptyResult struct{}

type ReplyGenerateDeviceAccessToken

type ReplyGenerateDeviceAccessToken struct {
	AccessToken []byte
}

type ReplyGetDeviceOnlineStatus

type ReplyGetDeviceOnlineStatus online.Status

type ReplyGetOffline

type ReplyGetOffline ReplyEmptyResult

type ReplyGetOnline

type ReplyGetOnline ReplyEmptyResult

type ReplyGetStatus

type ReplyGetStatus struct {
	Status []protocol.SubData
}

type ReplyHeartBeat

type ReplyHeartBeat ReplyEmptyResult

type ReplyOnEvent

type ReplyOnEvent ReplyEmptyResult

type ReplyPutData

type ReplyPutData ReplyEmptyResult

type ReplySendCommand

type ReplySendCommand ReplyEmptyResult

type ReplySetStatus

type ReplySetStatus ReplyEmptyResult

type ReplyValidateDeviceAccessToken

type ReplyValidateDeviceAccessToken ReplyEmptyResult

Jump to

Keyboard shortcuts

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