server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) DeviceCount

func (*DeviceManageServer) DeviceGatewayIndex

获取绑定信息的设备信息列表

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) 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 (*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 (*DeviceManageServer) DeviceInfoMultiBind

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.DeviceCore) (*dm.Empty, error)

func (*DeviceManageServer) DeviceInfoUpdate

func (s *DeviceManageServer) DeviceInfoUpdate(ctx context.Context, in *dm.DeviceInfo) (*dm.Empty, error)

更新设备

func (*DeviceManageServer) DeviceModuleVersionIndex

func (*DeviceManageServer) DeviceModuleVersionRead

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 (*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) DeviceTransfer

func (s *DeviceManageServer) DeviceTransfer(ctx context.Context, in *dm.DeviceTransferReq) (*dm.Empty, error)

func (*DeviceManageServer) DeviceTypeCount

设备类型

func (*DeviceManageServer) RootCheck

func (s *DeviceManageServer) RootCheck(ctx context.Context, in *dm.RootCheckReq) (*dm.Empty, error)

鉴定是否是root账号(提供给mqtt broker)

Jump to

Keyboard shortcuts

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