123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package rpcs
- import (
- "sparrow/pkg/online"
- )
- type ArgsGenerateDeviceAccessToken ArgsDeviceId
- type ReplyGenerateDeviceAccessToken struct {
- AccessToken []byte
- }
- type ArgsValidateDeviceAccessToken struct {
- Id string
- AccessToken []byte
- }
- type ReplyValidateDeviceAccessToken ReplyEmptyResult
- type ArgsGetOnline struct {
- Id string
- ClientIP string
- AccessRPCHost string
- HeartbeatInterval uint32
- }
- type ReplyGetOnline ReplyEmptyResult
- type ArgsGetOffline struct {
- Id string
- VendorId string
- }
- type ReplyGetOffline ReplyEmptyResult
- type ArgsHeartBeat struct {
- Id string
- }
- type ReplyHeartBeat ReplyEmptyResult
- type ArgsGetDeviceOnlineStatus ArgsDeviceId
- type ReplyGetDeviceOnlineStatus online.Status
- type ArgsOtaFile struct {
- FileId int
- FileData []byte
- }
- type ReplyOtaFile struct {
- File []byte
- }
- type ArgsOtaProgress struct {
- DeviceId string
- Progress int
- }
- type ReplyOtaProgress struct {
- Progress int
- }
- type ReplyDeviceStatus struct {
- Status interface{}
- }
|