Documentation
¶
Index ¶
- type DeviceManageServer
- func (s *DeviceManageServer) DeviceBindTokenCreate(ctx context.Context, in *dm.Empty) (*dm.DeviceBindTokenInfo, error)
- func (s *DeviceManageServer) DeviceBindTokenRead(ctx context.Context, in *dm.DeviceBindTokenReadReq) (*dm.DeviceBindTokenInfo, error)
- func (s *DeviceManageServer) DeviceCount(ctx context.Context, in *dm.DeviceCountReq) (*dm.DeviceCountResp, error)
- func (s *DeviceManageServer) DeviceGatewayIndex(ctx context.Context, in *dm.DeviceGatewayIndexReq) (*dm.DeviceGatewayIndexResp, error)
- func (s *DeviceManageServer) DeviceGatewayMultiCreate(ctx context.Context, in *dm.DeviceGatewayMultiCreateReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceGatewayMultiDelete(ctx context.Context, in *dm.DeviceGatewayMultiSaveReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceGatewayMultiUpdate(ctx context.Context, in *dm.DeviceGatewayMultiSaveReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceGroupMultiCreate(ctx context.Context, in *dm.DeviceGroupMultiSaveReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceGroupMultiDelete(ctx context.Context, in *dm.DeviceGroupMultiSaveReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceGroupMultiUpdate(ctx context.Context, in *dm.DeviceGroupMultiSaveReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceInfoBind(ctx context.Context, in *dm.DeviceInfoBindReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceInfoCanBind(ctx context.Context, in *dm.DeviceInfoCanBindReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceInfoCount(ctx context.Context, in *dm.DeviceInfoCountReq) (*dm.DeviceInfoCount, error)
- func (s *DeviceManageServer) DeviceInfoCreate(ctx context.Context, in *dm.DeviceInfo) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceInfoDelete(ctx context.Context, in *dm.DeviceInfoDeleteReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceInfoIndex(ctx context.Context, in *dm.DeviceInfoIndexReq) (*dm.DeviceInfoIndexResp, error)
- func (s *DeviceManageServer) DeviceInfoMultiBind(ctx context.Context, in *dm.DeviceInfoMultiBindReq) (*dm.DeviceInfoMultiBindResp, error)
- func (s *DeviceManageServer) DeviceInfoMultiUpdate(ctx context.Context, in *dm.DeviceInfoMultiUpdateReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceInfoRead(ctx context.Context, in *dm.DeviceInfoReadReq) (*dm.DeviceInfo, error)
- func (s *DeviceManageServer) DeviceInfoUnbind(ctx context.Context, in *dm.DeviceInfoUnbindReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceInfoUpdate(ctx context.Context, in *dm.DeviceInfo) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceModuleVersionIndex(ctx context.Context, in *dm.DeviceModuleVersionIndexReq) (*dm.DeviceModuleVersionIndexResp, error)
- func (s *DeviceManageServer) DeviceModuleVersionRead(ctx context.Context, in *dm.DeviceModuleVersionReadReq) (*dm.DeviceModuleVersion, error)
- func (s *DeviceManageServer) DeviceMove(ctx context.Context, in *dm.DeviceMoveReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceOnlineMultiFix(ctx context.Context, in *dm.DeviceOnlineMultiFixReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceProfileDelete(ctx context.Context, in *dm.DeviceProfileReadReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceProfileIndex(ctx context.Context, in *dm.DeviceProfileIndexReq) (*dm.DeviceProfileIndexResp, error)
- func (s *DeviceManageServer) DeviceProfileRead(ctx context.Context, in *dm.DeviceProfileReadReq) (*dm.DeviceProfile, error)
- func (s *DeviceManageServer) DeviceProfileUpdate(ctx context.Context, in *dm.DeviceProfile) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceReset(ctx context.Context, in *dm.DeviceResetReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceSchemaCreate(ctx context.Context, in *dm.DeviceSchema) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceSchemaIndex(ctx context.Context, in *dm.DeviceSchemaIndexReq) (*dm.DeviceSchemaIndexResp, error)
- func (s *DeviceManageServer) DeviceSchemaMultiCreate(ctx context.Context, in *dm.DeviceSchemaMultiCreateReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceSchemaMultiDelete(ctx context.Context, in *dm.DeviceSchemaMultiDeleteReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceSchemaTslRead(ctx context.Context, in *dm.DeviceSchemaTslReadReq) (*dm.DeviceSchemaTslReadResp, error)
- func (s *DeviceManageServer) DeviceSchemaUpdate(ctx context.Context, in *dm.DeviceSchema) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceTransfer(ctx context.Context, in *dm.DeviceTransferReq) (*dm.Empty, error)
- func (s *DeviceManageServer) DeviceTypeCount(ctx context.Context, in *dm.DeviceTypeCountReq) (*dm.DeviceTypeCountResp, error)
- func (s *DeviceManageServer) RootCheck(ctx context.Context, in *dm.RootCheckReq) (*dm.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceManageServer ¶
type DeviceManageServer struct { dm.UnimplementedDeviceManageServer // contains filtered or unexported fields }
func NewDeviceManageServer ¶
func NewDeviceManageServer(svcCtx *svc.ServiceContext) *DeviceManageServer
func (*DeviceManageServer) DeviceBindTokenCreate ¶ added in v1.3.0
func (s *DeviceManageServer) DeviceBindTokenCreate(ctx context.Context, in *dm.Empty) (*dm.DeviceBindTokenInfo, error)
func (*DeviceManageServer) DeviceBindTokenRead ¶ added in v1.3.0
func (s *DeviceManageServer) DeviceBindTokenRead(ctx context.Context, in *dm.DeviceBindTokenReadReq) (*dm.DeviceBindTokenInfo, error)
func (*DeviceManageServer) DeviceCount ¶
func (s *DeviceManageServer) DeviceCount(ctx context.Context, in *dm.DeviceCountReq) (*dm.DeviceCountResp, error)
func (*DeviceManageServer) DeviceGatewayIndex ¶
func (s *DeviceManageServer) DeviceGatewayIndex(ctx context.Context, in *dm.DeviceGatewayIndexReq) (*dm.DeviceGatewayIndexResp, error)
获取绑定信息的设备信息列表
func (*DeviceManageServer) DeviceGatewayMultiCreate ¶
func (s *DeviceManageServer) DeviceGatewayMultiCreate(ctx context.Context, in *dm.DeviceGatewayMultiCreateReq) (*dm.Empty, error)
绑定网关下子设备设备
func (*DeviceManageServer) DeviceGatewayMultiDelete ¶
func (s *DeviceManageServer) DeviceGatewayMultiDelete(ctx context.Context, in *dm.DeviceGatewayMultiSaveReq) (*dm.Empty, error)
删除网关下子设备
func (*DeviceManageServer) DeviceGatewayMultiUpdate ¶
func (s *DeviceManageServer) DeviceGatewayMultiUpdate(ctx context.Context, in *dm.DeviceGatewayMultiSaveReq) (*dm.Empty, error)
绑定网关下子设备设备
func (*DeviceManageServer) DeviceGroupMultiCreate ¶ added in v1.2.0
func (s *DeviceManageServer) DeviceGroupMultiCreate(ctx context.Context, in *dm.DeviceGroupMultiSaveReq) (*dm.Empty, error)
将设备加到多个分组中
func (*DeviceManageServer) DeviceGroupMultiDelete ¶ added in v1.2.0
func (s *DeviceManageServer) DeviceGroupMultiDelete(ctx context.Context, in *dm.DeviceGroupMultiSaveReq) (*dm.Empty, error)
删除设备所在分组
func (*DeviceManageServer) DeviceGroupMultiUpdate ¶ added in v1.2.0
func (s *DeviceManageServer) DeviceGroupMultiUpdate(ctx context.Context, in *dm.DeviceGroupMultiSaveReq) (*dm.Empty, error)
更新设备所在分组
func (*DeviceManageServer) DeviceInfoBind ¶
func (s *DeviceManageServer) DeviceInfoBind(ctx context.Context, in *dm.DeviceInfoBindReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceInfoCanBind ¶
func (s *DeviceManageServer) DeviceInfoCanBind(ctx context.Context, in *dm.DeviceInfoCanBindReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceInfoCount ¶
func (s *DeviceManageServer) DeviceInfoCount(ctx context.Context, in *dm.DeviceInfoCountReq) (*dm.DeviceInfoCount, error)
设备计数
func (*DeviceManageServer) DeviceInfoCreate ¶
func (s *DeviceManageServer) DeviceInfoCreate(ctx context.Context, in *dm.DeviceInfo) (*dm.Empty, error)
新增设备
func (*DeviceManageServer) DeviceInfoDelete ¶
func (s *DeviceManageServer) DeviceInfoDelete(ctx context.Context, in *dm.DeviceInfoDeleteReq) (*dm.Empty, error)
删除设备
func (*DeviceManageServer) DeviceInfoIndex ¶
func (s *DeviceManageServer) DeviceInfoIndex(ctx context.Context, in *dm.DeviceInfoIndexReq) (*dm.DeviceInfoIndexResp, error)
获取设备信息列表
func (*DeviceManageServer) DeviceInfoMultiBind ¶
func (s *DeviceManageServer) DeviceInfoMultiBind(ctx context.Context, in *dm.DeviceInfoMultiBindReq) (*dm.DeviceInfoMultiBindResp, error)
func (*DeviceManageServer) DeviceInfoMultiUpdate ¶
func (s *DeviceManageServer) DeviceInfoMultiUpdate(ctx context.Context, in *dm.DeviceInfoMultiUpdateReq) (*dm.Empty, error)
批量更新设备状态
func (*DeviceManageServer) DeviceInfoRead ¶
func (s *DeviceManageServer) DeviceInfoRead(ctx context.Context, in *dm.DeviceInfoReadReq) (*dm.DeviceInfo, error)
获取设备信息详情
func (*DeviceManageServer) DeviceInfoUnbind ¶
func (s *DeviceManageServer) DeviceInfoUnbind(ctx context.Context, in *dm.DeviceInfoUnbindReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceInfoUpdate ¶
func (s *DeviceManageServer) DeviceInfoUpdate(ctx context.Context, in *dm.DeviceInfo) (*dm.Empty, error)
更新设备
func (*DeviceManageServer) DeviceModuleVersionIndex ¶
func (s *DeviceManageServer) DeviceModuleVersionIndex(ctx context.Context, in *dm.DeviceModuleVersionIndexReq) (*dm.DeviceModuleVersionIndexResp, error)
func (*DeviceManageServer) DeviceModuleVersionRead ¶
func (s *DeviceManageServer) DeviceModuleVersionRead(ctx context.Context, in *dm.DeviceModuleVersionReadReq) (*dm.DeviceModuleVersion, error)
func (*DeviceManageServer) DeviceMove ¶
func (s *DeviceManageServer) DeviceMove(ctx context.Context, in *dm.DeviceMoveReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceOnlineMultiFix ¶
func (s *DeviceManageServer) DeviceOnlineMultiFix(ctx context.Context, in *dm.DeviceOnlineMultiFixReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceProfileDelete ¶
func (s *DeviceManageServer) DeviceProfileDelete(ctx context.Context, in *dm.DeviceProfileReadReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceProfileIndex ¶
func (s *DeviceManageServer) DeviceProfileIndex(ctx context.Context, in *dm.DeviceProfileIndexReq) (*dm.DeviceProfileIndexResp, error)
func (*DeviceManageServer) DeviceProfileRead ¶
func (s *DeviceManageServer) DeviceProfileRead(ctx context.Context, in *dm.DeviceProfileReadReq) (*dm.DeviceProfile, error)
func (*DeviceManageServer) DeviceProfileUpdate ¶
func (s *DeviceManageServer) DeviceProfileUpdate(ctx context.Context, in *dm.DeviceProfile) (*dm.Empty, error)
func (*DeviceManageServer) DeviceReset ¶ added in v1.1.1
func (s *DeviceManageServer) DeviceReset(ctx context.Context, in *dm.DeviceResetReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceSchemaCreate ¶ added in v1.0.4
func (s *DeviceManageServer) DeviceSchemaCreate(ctx context.Context, in *dm.DeviceSchema) (*dm.Empty, error)
新增设备
func (*DeviceManageServer) DeviceSchemaIndex ¶ added in v1.0.4
func (s *DeviceManageServer) DeviceSchemaIndex(ctx context.Context, in *dm.DeviceSchemaIndexReq) (*dm.DeviceSchemaIndexResp, error)
获取设备物模型列表
func (*DeviceManageServer) DeviceSchemaMultiCreate ¶ added in v1.0.4
func (s *DeviceManageServer) DeviceSchemaMultiCreate(ctx context.Context, in *dm.DeviceSchemaMultiCreateReq) (*dm.Empty, error)
批量新增物模型,只新增没有的,已有的不处理
func (*DeviceManageServer) DeviceSchemaMultiDelete ¶ added in v1.0.4
func (s *DeviceManageServer) DeviceSchemaMultiDelete(ctx context.Context, in *dm.DeviceSchemaMultiDeleteReq) (*dm.Empty, error)
删除设备物模型
func (*DeviceManageServer) DeviceSchemaTslRead ¶ added in v1.0.4
func (s *DeviceManageServer) DeviceSchemaTslRead(ctx context.Context, in *dm.DeviceSchemaTslReadReq) (*dm.DeviceSchemaTslReadResp, error)
func (*DeviceManageServer) DeviceSchemaUpdate ¶ added in v1.0.4
func (s *DeviceManageServer) DeviceSchemaUpdate(ctx context.Context, in *dm.DeviceSchema) (*dm.Empty, error)
更新设备物模型
func (*DeviceManageServer) DeviceTransfer ¶
func (s *DeviceManageServer) DeviceTransfer(ctx context.Context, in *dm.DeviceTransferReq) (*dm.Empty, error)
func (*DeviceManageServer) DeviceTypeCount ¶
func (s *DeviceManageServer) DeviceTypeCount(ctx context.Context, in *dm.DeviceTypeCountReq) (*dm.DeviceTypeCountResp, error)
设备类型
func (*DeviceManageServer) RootCheck ¶
func (s *DeviceManageServer) RootCheck(ctx context.Context, in *dm.RootCheckReq) (*dm.Empty, error)
鉴定是否是root账号(提供给mqtt broker)
Click to show internal directories.
Click to hide internal directories.