iot

package
v0.5.51 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(host, address string)

func RegisterIOTServer

func RegisterIOTServer(s *grpc.Server, srv IOTServer)

Types

type ApplyData

type ApplyData struct {
	ApplyId              uint64   `protobuf:"varint,1,opt,name=ApplyId,proto3" json:"ApplyId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApplyData) Descriptor

func (*ApplyData) Descriptor() ([]byte, []int)

func (*ApplyData) GetApplyId

func (m *ApplyData) GetApplyId() uint64

func (*ApplyData) ProtoMessage

func (*ApplyData) ProtoMessage()

func (*ApplyData) Reset

func (m *ApplyData) Reset()

func (*ApplyData) String

func (m *ApplyData) String() string

func (*ApplyData) XXX_DiscardUnknown

func (m *ApplyData) XXX_DiscardUnknown()

func (*ApplyData) XXX_Marshal

func (m *ApplyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplyData) XXX_Merge

func (dst *ApplyData) XXX_Merge(src proto.Message)

func (*ApplyData) XXX_Size

func (m *ApplyData) XXX_Size() int

func (*ApplyData) XXX_Unmarshal

func (m *ApplyData) XXX_Unmarshal(b []byte) error

type ApplyDeviceInfo

type ApplyDeviceInfo struct {
	DeviceId             string   `protobuf:"bytes,1,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
	DeviceName           string   `protobuf:"bytes,2,opt,name=DeviceName,proto3" json:"DeviceName,omitempty"`
	DeviceSecret         string   `protobuf:"bytes,3,opt,name=DeviceSecret,proto3" json:"DeviceSecret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApplyDeviceInfo) Descriptor

func (*ApplyDeviceInfo) Descriptor() ([]byte, []int)

func (*ApplyDeviceInfo) GetDeviceId

func (m *ApplyDeviceInfo) GetDeviceId() string

func (*ApplyDeviceInfo) GetDeviceName

func (m *ApplyDeviceInfo) GetDeviceName() string

func (*ApplyDeviceInfo) GetDeviceSecret

func (m *ApplyDeviceInfo) GetDeviceSecret() string

func (*ApplyDeviceInfo) ProtoMessage

func (*ApplyDeviceInfo) ProtoMessage()

func (*ApplyDeviceInfo) Reset

func (m *ApplyDeviceInfo) Reset()

func (*ApplyDeviceInfo) String

func (m *ApplyDeviceInfo) String() string

func (*ApplyDeviceInfo) XXX_DiscardUnknown

func (m *ApplyDeviceInfo) XXX_DiscardUnknown()

func (*ApplyDeviceInfo) XXX_Marshal

func (m *ApplyDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplyDeviceInfo) XXX_Merge

func (dst *ApplyDeviceInfo) XXX_Merge(src proto.Message)

func (*ApplyDeviceInfo) XXX_Size

func (m *ApplyDeviceInfo) XXX_Size() int

func (*ApplyDeviceInfo) XXX_Unmarshal

func (m *ApplyDeviceInfo) XXX_Unmarshal(b []byte) error

type BatchDeviceInfo

type BatchDeviceInfo struct {
	ProductKey           string   `protobuf:"bytes,1,opt,name=ProductKey,proto3" json:"ProductKey,omitempty"`
	DeviceName           []string `protobuf:"bytes,2,rep,name=DeviceName,proto3" json:"DeviceName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BatchDeviceInfo) Descriptor

func (*BatchDeviceInfo) Descriptor() ([]byte, []int)

func (*BatchDeviceInfo) GetDeviceName

func (m *BatchDeviceInfo) GetDeviceName() []string

func (*BatchDeviceInfo) GetProductKey

func (m *BatchDeviceInfo) GetProductKey() string

func (*BatchDeviceInfo) ProtoMessage

func (*BatchDeviceInfo) ProtoMessage()

func (*BatchDeviceInfo) Reset

func (m *BatchDeviceInfo) Reset()

func (*BatchDeviceInfo) String

func (m *BatchDeviceInfo) String() string

func (*BatchDeviceInfo) XXX_DiscardUnknown

func (m *BatchDeviceInfo) XXX_DiscardUnknown()

func (*BatchDeviceInfo) XXX_Marshal

func (m *BatchDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchDeviceInfo) XXX_Merge

func (dst *BatchDeviceInfo) XXX_Merge(src proto.Message)

func (*BatchDeviceInfo) XXX_Size

func (m *BatchDeviceInfo) XXX_Size() int

func (*BatchDeviceInfo) XXX_Unmarshal

func (m *BatchDeviceInfo) XXX_Unmarshal(b []byte) error

type BatchRegisterReply

type BatchRegisterReply struct {
	Data                 *ApplyData `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func BatchCheckDeviceNames

func BatchCheckDeviceNames(request *BatchDeviceInfo) (*BatchRegisterReply, error)

func BatchRegisterDeviceWithApplyId

func BatchRegisterDeviceWithApplyId(request *BatchRegisterRequest) (*BatchRegisterReply, error)

func (*BatchRegisterReply) Descriptor

func (*BatchRegisterReply) Descriptor() ([]byte, []int)

func (*BatchRegisterReply) GetData

func (m *BatchRegisterReply) GetData() *ApplyData

func (*BatchRegisterReply) ProtoMessage

func (*BatchRegisterReply) ProtoMessage()

func (*BatchRegisterReply) Reset

func (m *BatchRegisterReply) Reset()

func (*BatchRegisterReply) String

func (m *BatchRegisterReply) String() string

func (*BatchRegisterReply) XXX_DiscardUnknown

func (m *BatchRegisterReply) XXX_DiscardUnknown()

func (*BatchRegisterReply) XXX_Marshal

func (m *BatchRegisterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchRegisterReply) XXX_Merge

func (dst *BatchRegisterReply) XXX_Merge(src proto.Message)

func (*BatchRegisterReply) XXX_Size

func (m *BatchRegisterReply) XXX_Size() int

func (*BatchRegisterReply) XXX_Unmarshal

func (m *BatchRegisterReply) XXX_Unmarshal(b []byte) error

type BatchRegisterRequest

type BatchRegisterRequest struct {
	ProductKey           string   `protobuf:"bytes,1,opt,name=ProductKey,proto3" json:"ProductKey,omitempty"`
	ApplyId              string   `protobuf:"bytes,2,opt,name=ApplyId,proto3" json:"ApplyId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BatchRegisterRequest) Descriptor

func (*BatchRegisterRequest) Descriptor() ([]byte, []int)

func (*BatchRegisterRequest) GetApplyId

func (m *BatchRegisterRequest) GetApplyId() string

func (*BatchRegisterRequest) GetProductKey

func (m *BatchRegisterRequest) GetProductKey() string

func (*BatchRegisterRequest) ProtoMessage

func (*BatchRegisterRequest) ProtoMessage()

func (*BatchRegisterRequest) Reset

func (m *BatchRegisterRequest) Reset()

func (*BatchRegisterRequest) String

func (m *BatchRegisterRequest) String() string

func (*BatchRegisterRequest) XXX_DiscardUnknown

func (m *BatchRegisterRequest) XXX_DiscardUnknown()

func (*BatchRegisterRequest) XXX_Marshal

func (m *BatchRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchRegisterRequest) XXX_Merge

func (dst *BatchRegisterRequest) XXX_Merge(src proto.Message)

func (*BatchRegisterRequest) XXX_Size

func (m *BatchRegisterRequest) XXX_Size() int

func (*BatchRegisterRequest) XXX_Unmarshal

func (m *BatchRegisterRequest) XXX_Unmarshal(b []byte) error

type Data

type Data struct {
	DeviceId             string   `protobuf:"bytes,1,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
	DeviceName           string   `protobuf:"bytes,2,opt,name=DeviceName,proto3" json:"DeviceName,omitempty"`
	DeviceSecret         string   `protobuf:"bytes,3,opt,name=DeviceSecret,proto3" json:"DeviceSecret,omitempty"`
	GmtCreate            string   `protobuf:"bytes,4,opt,name=GmtCreate,proto3" json:"GmtCreate,omitempty"`
	GmtModified          string   `protobuf:"bytes,5,opt,name=GmtModified,proto3" json:"GmtModified,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Data) Descriptor

func (*Data) Descriptor() ([]byte, []int)

func (*Data) GetDeviceId

func (m *Data) GetDeviceId() string

func (*Data) GetDeviceName

func (m *Data) GetDeviceName() string

func (*Data) GetDeviceSecret

func (m *Data) GetDeviceSecret() string

func (*Data) GetGmtCreate

func (m *Data) GetGmtCreate() string

func (*Data) GetGmtModified

func (m *Data) GetGmtModified() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) String

func (m *Data) String() string

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Data) XXX_Merge

func (dst *Data) XXX_Merge(src proto.Message)

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

func (m *Data) XXX_Unmarshal(b []byte) error

type Device

type Device struct {
	DeviceName           string   `protobuf:"bytes,1,opt,name=DeviceName,proto3" json:"DeviceName,omitempty"`
	ProductKey           string   `protobuf:"bytes,2,opt,name=ProductKey,proto3" json:"ProductKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Device) Descriptor

func (*Device) Descriptor() ([]byte, []int)

func (*Device) GetDeviceName

func (m *Device) GetDeviceName() string

func (*Device) GetProductKey

func (m *Device) GetProductKey() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) Reset

func (m *Device) Reset()

func (*Device) String

func (m *Device) String() string

func (*Device) XXX_DiscardUnknown

func (m *Device) XXX_DiscardUnknown()

func (*Device) XXX_Marshal

func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Device) XXX_Merge

func (dst *Device) XXX_Merge(src proto.Message)

func (*Device) XXX_Size

func (m *Device) XXX_Size() int

func (*Device) XXX_Unmarshal

func (m *Device) XXX_Unmarshal(b []byte) error

type DeviceInfo

type DeviceInfo struct {
	DeviceId             string   `protobuf:"bytes,1,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
	DeviceName           string   `protobuf:"bytes,2,opt,name=DeviceName,proto3" json:"DeviceName,omitempty"`
	DeviceSecret         string   `protobuf:"bytes,3,opt,name=DeviceSecret,proto3" json:"DeviceSecret,omitempty"`
	GmtCreate            string   `protobuf:"bytes,4,opt,name=GmtCreate,proto3" json:"GmtCreate,omitempty"`
	GmtModified          string   `protobuf:"bytes,5,opt,name=GmtModified,proto3" json:"GmtModified,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeviceInfo) Descriptor

func (*DeviceInfo) Descriptor() ([]byte, []int)

func (*DeviceInfo) GetDeviceId

func (m *DeviceInfo) GetDeviceId() string

func (*DeviceInfo) GetDeviceName

func (m *DeviceInfo) GetDeviceName() string

func (*DeviceInfo) GetDeviceSecret

func (m *DeviceInfo) GetDeviceSecret() string

func (*DeviceInfo) GetGmtCreate

func (m *DeviceInfo) GetGmtCreate() string

func (*DeviceInfo) GetGmtModified

func (m *DeviceInfo) GetGmtModified() string

func (*DeviceInfo) ProtoMessage

func (*DeviceInfo) ProtoMessage()

func (*DeviceInfo) Reset

func (m *DeviceInfo) Reset()

func (*DeviceInfo) String

func (m *DeviceInfo) String() string

func (*DeviceInfo) XXX_DiscardUnknown

func (m *DeviceInfo) XXX_DiscardUnknown()

func (*DeviceInfo) XXX_Marshal

func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeviceInfo) XXX_Merge

func (dst *DeviceInfo) XXX_Merge(src proto.Message)

func (*DeviceInfo) XXX_Size

func (m *DeviceInfo) XXX_Size() int

func (*DeviceInfo) XXX_Unmarshal

func (m *DeviceInfo) XXX_Unmarshal(b []byte) error

type DeviceStatus

type DeviceStatus struct {
	DeviceName           string   `protobuf:"bytes,1,opt,name=DeviceName,proto3" json:"DeviceName,omitempty"`
	Status               string   `protobuf:"bytes,2,opt,name=Status,proto3" json:"Status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeviceStatus) Descriptor

func (*DeviceStatus) Descriptor() ([]byte, []int)

func (*DeviceStatus) GetDeviceName

func (m *DeviceStatus) GetDeviceName() string

func (*DeviceStatus) GetStatus

func (m *DeviceStatus) GetStatus() string

func (*DeviceStatus) ProtoMessage

func (*DeviceStatus) ProtoMessage()

func (*DeviceStatus) Reset

func (m *DeviceStatus) Reset()

func (*DeviceStatus) String

func (m *DeviceStatus) String() string

func (*DeviceStatus) XXX_DiscardUnknown

func (m *DeviceStatus) XXX_DiscardUnknown()

func (*DeviceStatus) XXX_Marshal

func (m *DeviceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeviceStatus) XXX_Merge

func (dst *DeviceStatus) XXX_Merge(src proto.Message)

func (*DeviceStatus) XXX_Size

func (m *DeviceStatus) XXX_Size() int

func (*DeviceStatus) XXX_Unmarshal

func (m *DeviceStatus) XXX_Unmarshal(b []byte) error

type DeviceStatusInfo

type DeviceStatusInfo struct {
	Status               string   `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeviceStatusInfo) Descriptor

func (*DeviceStatusInfo) Descriptor() ([]byte, []int)

func (*DeviceStatusInfo) GetStatus

func (m *DeviceStatusInfo) GetStatus() string

func (*DeviceStatusInfo) ProtoMessage

func (*DeviceStatusInfo) ProtoMessage()

func (*DeviceStatusInfo) Reset

func (m *DeviceStatusInfo) Reset()

func (*DeviceStatusInfo) String

func (m *DeviceStatusInfo) String() string

func (*DeviceStatusInfo) XXX_DiscardUnknown

func (m *DeviceStatusInfo) XXX_DiscardUnknown()

func (*DeviceStatusInfo) XXX_Marshal

func (m *DeviceStatusInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeviceStatusInfo) XXX_Merge

func (dst *DeviceStatusInfo) XXX_Merge(src proto.Message)

func (*DeviceStatusInfo) XXX_Size

func (m *DeviceStatusInfo) XXX_Size() int

func (*DeviceStatusInfo) XXX_Unmarshal

func (m *DeviceStatusInfo) XXX_Unmarshal(b []byte) error

type GetDeviceStatusReply

type GetDeviceStatusReply struct {
	DeviceStatusList     []*DeviceStatus `protobuf:"bytes,1,rep,name=DeviceStatusList,proto3" json:"DeviceStatusList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func BatchGetDeviceState

func BatchGetDeviceState(request *BatchDeviceInfo) (*GetDeviceStatusReply, error)

func (*GetDeviceStatusReply) Descriptor

func (*GetDeviceStatusReply) Descriptor() ([]byte, []int)

func (*GetDeviceStatusReply) GetDeviceStatusList

func (m *GetDeviceStatusReply) GetDeviceStatusList() []*DeviceStatus

func (*GetDeviceStatusReply) ProtoMessage

func (*GetDeviceStatusReply) ProtoMessage()

func (*GetDeviceStatusReply) Reset

func (m *GetDeviceStatusReply) Reset()

func (*GetDeviceStatusReply) String

func (m *GetDeviceStatusReply) String() string

func (*GetDeviceStatusReply) XXX_DiscardUnknown

func (m *GetDeviceStatusReply) XXX_DiscardUnknown()

func (*GetDeviceStatusReply) XXX_Marshal

func (m *GetDeviceStatusReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDeviceStatusReply) XXX_Merge

func (dst *GetDeviceStatusReply) XXX_Merge(src proto.Message)

func (*GetDeviceStatusReply) XXX_Size

func (m *GetDeviceStatusReply) XXX_Size() int

func (*GetDeviceStatusReply) XXX_Unmarshal

func (m *GetDeviceStatusReply) XXX_Unmarshal(b []byte) error

type GetReply

type GetReply struct {
	PageCount            uint32        `protobuf:"varint,1,opt,name=PageCount,proto3" json:"PageCount,omitempty"`
	PageSize             uint32        `protobuf:"varint,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
	Page                 uint32        `protobuf:"varint,3,opt,name=Page,proto3" json:"Page,omitempty"`
	Total                uint32        `protobuf:"varint,4,opt,name=Total,proto3" json:"Total,omitempty"`
	Data                 []*DeviceInfo `protobuf:"bytes,5,rep,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func GetAllDevices

func GetAllDevices(request *GetRequest) (*GetReply, error)

func (*GetReply) Descriptor

func (*GetReply) Descriptor() ([]byte, []int)

func (*GetReply) GetData

func (m *GetReply) GetData() []*DeviceInfo

func (*GetReply) GetPage

func (m *GetReply) GetPage() uint32

func (*GetReply) GetPageCount

func (m *GetReply) GetPageCount() uint32

func (*GetReply) GetPageSize

func (m *GetReply) GetPageSize() uint32

func (*GetReply) GetTotal

func (m *GetReply) GetTotal() uint32

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) Reset

func (m *GetReply) Reset()

func (*GetReply) String

func (m *GetReply) String() string

func (*GetReply) XXX_DiscardUnknown

func (m *GetReply) XXX_DiscardUnknown()

func (*GetReply) XXX_Marshal

func (m *GetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetReply) XXX_Merge

func (dst *GetReply) XXX_Merge(src proto.Message)

func (*GetReply) XXX_Size

func (m *GetReply) XXX_Size() int

func (*GetReply) XXX_Unmarshal

func (m *GetReply) XXX_Unmarshal(b []byte) error

type GetRequest

type GetRequest struct {
	ProductKey           string   `protobuf:"bytes,1,opt,name=ProductKey,proto3" json:"ProductKey,omitempty"`
	PageSize             string   `protobuf:"bytes,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
	CurrentPage          string   `protobuf:"bytes,3,opt,name=CurrentPage,proto3" json:"CurrentPage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

func (*GetRequest) Descriptor() ([]byte, []int)

func (*GetRequest) GetCurrentPage

func (m *GetRequest) GetCurrentPage() string

func (*GetRequest) GetPageSize

func (m *GetRequest) GetPageSize() string

func (*GetRequest) GetProductKey

func (m *GetRequest) GetProductKey() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRequest) XXX_Merge

func (dst *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

func (m *GetRequest) XXX_Unmarshal(b []byte) error

type GetSingleDeviceStatusReply

type GetSingleDeviceStatusReply struct {
	Data                 *DeviceStatusInfo `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func GetDeviceStatus

func GetDeviceStatus(device *Device) (*GetSingleDeviceStatusReply, error)

func (*GetSingleDeviceStatusReply) Descriptor

func (*GetSingleDeviceStatusReply) Descriptor() ([]byte, []int)

func (*GetSingleDeviceStatusReply) GetData

func (*GetSingleDeviceStatusReply) ProtoMessage

func (*GetSingleDeviceStatusReply) ProtoMessage()

func (*GetSingleDeviceStatusReply) Reset

func (m *GetSingleDeviceStatusReply) Reset()

func (*GetSingleDeviceStatusReply) String

func (m *GetSingleDeviceStatusReply) String() string

func (*GetSingleDeviceStatusReply) XXX_DiscardUnknown

func (m *GetSingleDeviceStatusReply) XXX_DiscardUnknown()

func (*GetSingleDeviceStatusReply) XXX_Marshal

func (m *GetSingleDeviceStatusReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSingleDeviceStatusReply) XXX_Merge

func (dst *GetSingleDeviceStatusReply) XXX_Merge(src proto.Message)

func (*GetSingleDeviceStatusReply) XXX_Size

func (m *GetSingleDeviceStatusReply) XXX_Size() int

func (*GetSingleDeviceStatusReply) XXX_Unmarshal

func (m *GetSingleDeviceStatusReply) XXX_Unmarshal(b []byte) error

type IOTClient

type IOTClient interface {
	// 在指定产品下批量自定义设备名称
	BatchCheckDeviceNames(ctx context.Context, in *BatchDeviceInfo, opts ...grpc.CallOption) (*BatchRegisterReply, error)
	// 在指定产品下批量注册多个设备
	BatchRegisterDeviceWithApplyId(ctx context.Context, in *BatchRegisterRequest, opts ...grpc.CallOption) (*BatchRegisterReply, error)
	// 查询指定产品下的所有设备列表
	GetAllDevices(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
	// 从物联网平台删除设备
	DeleteDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*NullReply, error)
	// 禁用指定设备
	DisableThing(ctx context.Context, in *Device, opts ...grpc.CallOption) (*NullReply, error)
	// 启用指定设备
	EnableThing(ctx context.Context, in *Device, opts ...grpc.CallOption) (*NullReply, error)
	// 向指定topic发布消息
	Pub(ctx context.Context, in *PubRequest, opts ...grpc.CallOption) (*PubReply, error)
	// 批量查看同一产品下指定设备的运行状态
	BatchGetDeviceState(ctx context.Context, in *BatchDeviceInfo, opts ...grpc.CallOption) (*GetDeviceStatusReply, error)
	// 查询批量注册的设备信息
	QueryPageByApplyId(ctx context.Context, in *QueryPageRequest, opts ...grpc.CallOption) (*QueryPageReply, error)
	// 查询指定设备的详细信息
	QueryDeviceDetail(ctx context.Context, in *Device, opts ...grpc.CallOption) (*QueryDeviceReply, error)
	// 查看指定设备的运行状态
	GetDeviceStatus(ctx context.Context, in *Device, opts ...grpc.CallOption) (*GetSingleDeviceStatusReply, error)
}

IOTClient is the client API for IOT service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewIOTClient

func NewIOTClient(cc *grpc.ClientConn) IOTClient

type IOTServer

type IOTServer interface {
	// 在指定产品下批量自定义设备名称
	BatchCheckDeviceNames(context.Context, *BatchDeviceInfo) (*BatchRegisterReply, error)
	// 在指定产品下批量注册多个设备
	BatchRegisterDeviceWithApplyId(context.Context, *BatchRegisterRequest) (*BatchRegisterReply, error)
	// 查询指定产品下的所有设备列表
	GetAllDevices(context.Context, *GetRequest) (*GetReply, error)
	// 从物联网平台删除设备
	DeleteDevice(context.Context, *Device) (*NullReply, error)
	// 禁用指定设备
	DisableThing(context.Context, *Device) (*NullReply, error)
	// 启用指定设备
	EnableThing(context.Context, *Device) (*NullReply, error)
	// 向指定topic发布消息
	Pub(context.Context, *PubRequest) (*PubReply, error)
	// 批量查看同一产品下指定设备的运行状态
	BatchGetDeviceState(context.Context, *BatchDeviceInfo) (*GetDeviceStatusReply, error)
	// 查询批量注册的设备信息
	QueryPageByApplyId(context.Context, *QueryPageRequest) (*QueryPageReply, error)
	// 查询指定设备的详细信息
	QueryDeviceDetail(context.Context, *Device) (*QueryDeviceReply, error)
	// 查看指定设备的运行状态
	GetDeviceStatus(context.Context, *Device) (*GetSingleDeviceStatusReply, error)
}

IOTServer is the server API for IOT service.

type NullReply

type NullReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func DeleteDevice

func DeleteDevice(device *Device) (*NullReply, error)

func DisableThing

func DisableThing(device *Device) (*NullReply, error)

func EnableThing

func EnableThing(device *Device) (*NullReply, error)

func (*NullReply) Descriptor

func (*NullReply) Descriptor() ([]byte, []int)

func (*NullReply) ProtoMessage

func (*NullReply) ProtoMessage()

func (*NullReply) Reset

func (m *NullReply) Reset()

func (*NullReply) String

func (m *NullReply) String() string

func (*NullReply) XXX_DiscardUnknown

func (m *NullReply) XXX_DiscardUnknown()

func (*NullReply) XXX_Marshal

func (m *NullReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NullReply) XXX_Merge

func (dst *NullReply) XXX_Merge(src proto.Message)

func (*NullReply) XXX_Size

func (m *NullReply) XXX_Size() int

func (*NullReply) XXX_Unmarshal

func (m *NullReply) XXX_Unmarshal(b []byte) error

type PubReply

type PubReply struct {
	MessageId            string   `protobuf:"bytes,1,opt,name=MessageId,proto3" json:"MessageId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func Pub

func Pub(request *PubRequest) (*PubReply, error)

func (*PubReply) Descriptor

func (*PubReply) Descriptor() ([]byte, []int)

func (*PubReply) GetMessageId

func (m *PubReply) GetMessageId() string

func (*PubReply) ProtoMessage

func (*PubReply) ProtoMessage()

func (*PubReply) Reset

func (m *PubReply) Reset()

func (*PubReply) String

func (m *PubReply) String() string

func (*PubReply) XXX_DiscardUnknown

func (m *PubReply) XXX_DiscardUnknown()

func (*PubReply) XXX_Marshal

func (m *PubReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PubReply) XXX_Merge

func (dst *PubReply) XXX_Merge(src proto.Message)

func (*PubReply) XXX_Size

func (m *PubReply) XXX_Size() int

func (*PubReply) XXX_Unmarshal

func (m *PubReply) XXX_Unmarshal(b []byte) error

type PubRequest

type PubRequest struct {
	ProductKey           string   `protobuf:"bytes,1,opt,name=ProductKey,proto3" json:"ProductKey,omitempty"`
	TopicFullName        string   `protobuf:"bytes,2,opt,name=TopicFullName,proto3" json:"TopicFullName,omitempty"`
	MessageContent       string   `protobuf:"bytes,3,opt,name=MessageContent,proto3" json:"MessageContent,omitempty"`
	Qos                  string   `protobuf:"bytes,4,opt,name=Qos,proto3" json:"Qos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PubRequest) Descriptor

func (*PubRequest) Descriptor() ([]byte, []int)

func (*PubRequest) GetMessageContent

func (m *PubRequest) GetMessageContent() string

func (*PubRequest) GetProductKey

func (m *PubRequest) GetProductKey() string

func (*PubRequest) GetQos

func (m *PubRequest) GetQos() string

func (*PubRequest) GetTopicFullName

func (m *PubRequest) GetTopicFullName() string

func (*PubRequest) ProtoMessage

func (*PubRequest) ProtoMessage()

func (*PubRequest) Reset

func (m *PubRequest) Reset()

func (*PubRequest) String

func (m *PubRequest) String() string

func (*PubRequest) XXX_DiscardUnknown

func (m *PubRequest) XXX_DiscardUnknown()

func (*PubRequest) XXX_Marshal

func (m *PubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PubRequest) XXX_Merge

func (dst *PubRequest) XXX_Merge(src proto.Message)

func (*PubRequest) XXX_Size

func (m *PubRequest) XXX_Size() int

func (*PubRequest) XXX_Unmarshal

func (m *PubRequest) XXX_Unmarshal(b []byte) error

type QueryDeviceReply

type QueryDeviceReply struct {
	Data                 *Data    `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func QueryDeviceDetail

func QueryDeviceDetail(device *Device) (*QueryDeviceReply, error)

func (*QueryDeviceReply) Descriptor

func (*QueryDeviceReply) Descriptor() ([]byte, []int)

func (*QueryDeviceReply) GetData

func (m *QueryDeviceReply) GetData() *Data

func (*QueryDeviceReply) ProtoMessage

func (*QueryDeviceReply) ProtoMessage()

func (*QueryDeviceReply) Reset

func (m *QueryDeviceReply) Reset()

func (*QueryDeviceReply) String

func (m *QueryDeviceReply) String() string

func (*QueryDeviceReply) XXX_DiscardUnknown

func (m *QueryDeviceReply) XXX_DiscardUnknown()

func (*QueryDeviceReply) XXX_Marshal

func (m *QueryDeviceReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDeviceReply) XXX_Merge

func (dst *QueryDeviceReply) XXX_Merge(src proto.Message)

func (*QueryDeviceReply) XXX_Size

func (m *QueryDeviceReply) XXX_Size() int

func (*QueryDeviceReply) XXX_Unmarshal

func (m *QueryDeviceReply) XXX_Unmarshal(b []byte) error

type QueryPageReply

type QueryPageReply struct {
	PageCount            uint32             `protobuf:"varint,1,opt,name=PageCount,proto3" json:"PageCount,omitempty"`
	PageSize             uint32             `protobuf:"varint,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
	Page                 uint32             `protobuf:"varint,3,opt,name=Page,proto3" json:"Page,omitempty"`
	Total                uint32             `protobuf:"varint,4,opt,name=Total,proto3" json:"Total,omitempty"`
	ApplyDeviceList      []*ApplyDeviceInfo `protobuf:"bytes,5,rep,name=ApplyDeviceList,proto3" json:"ApplyDeviceList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func QueryPageByApplyId

func QueryPageByApplyId(request *QueryPageRequest) (*QueryPageReply, error)

func (*QueryPageReply) Descriptor

func (*QueryPageReply) Descriptor() ([]byte, []int)

func (*QueryPageReply) GetApplyDeviceList

func (m *QueryPageReply) GetApplyDeviceList() []*ApplyDeviceInfo

func (*QueryPageReply) GetPage

func (m *QueryPageReply) GetPage() uint32

func (*QueryPageReply) GetPageCount

func (m *QueryPageReply) GetPageCount() uint32

func (*QueryPageReply) GetPageSize

func (m *QueryPageReply) GetPageSize() uint32

func (*QueryPageReply) GetTotal

func (m *QueryPageReply) GetTotal() uint32

func (*QueryPageReply) ProtoMessage

func (*QueryPageReply) ProtoMessage()

func (*QueryPageReply) Reset

func (m *QueryPageReply) Reset()

func (*QueryPageReply) String

func (m *QueryPageReply) String() string

func (*QueryPageReply) XXX_DiscardUnknown

func (m *QueryPageReply) XXX_DiscardUnknown()

func (*QueryPageReply) XXX_Marshal

func (m *QueryPageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPageReply) XXX_Merge

func (dst *QueryPageReply) XXX_Merge(src proto.Message)

func (*QueryPageReply) XXX_Size

func (m *QueryPageReply) XXX_Size() int

func (*QueryPageReply) XXX_Unmarshal

func (m *QueryPageReply) XXX_Unmarshal(b []byte) error

type QueryPageRequest

type QueryPageRequest struct {
	ApplyId              string   `protobuf:"bytes,1,opt,name=ApplyId,proto3" json:"ApplyId,omitempty"`
	PageSize             string   `protobuf:"bytes,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
	CurrentPage          string   `protobuf:"bytes,3,opt,name=CurrentPage,proto3" json:"CurrentPage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*QueryPageRequest) Descriptor

func (*QueryPageRequest) Descriptor() ([]byte, []int)

func (*QueryPageRequest) GetApplyId

func (m *QueryPageRequest) GetApplyId() string

func (*QueryPageRequest) GetCurrentPage

func (m *QueryPageRequest) GetCurrentPage() string

func (*QueryPageRequest) GetPageSize

func (m *QueryPageRequest) GetPageSize() string

func (*QueryPageRequest) ProtoMessage

func (*QueryPageRequest) ProtoMessage()

func (*QueryPageRequest) Reset

func (m *QueryPageRequest) Reset()

func (*QueryPageRequest) String

func (m *QueryPageRequest) String() string

func (*QueryPageRequest) XXX_DiscardUnknown

func (m *QueryPageRequest) XXX_DiscardUnknown()

func (*QueryPageRequest) XXX_Marshal

func (m *QueryPageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPageRequest) XXX_Merge

func (dst *QueryPageRequest) XXX_Merge(src proto.Message)

func (*QueryPageRequest) XXX_Size

func (m *QueryPageRequest) XXX_Size() int

func (*QueryPageRequest) XXX_Unmarshal

func (m *QueryPageRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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