Documentation ¶
Index ¶
- Variables
- type AccessAuthLogic
- func (l *AccessAuthLogic) AccessAuth(in *dm.AccessAuthReq) (*dm.Response, error)
- func (l *AccessAuthLogic) Auth(in *dm.AccessAuthReq) (err error)
- func (l *AccessAuthLogic) DeviceSelfAuth(in *dm.AccessAuthReq) (err error)
- func (l *AccessAuthLogic) SubSetAuth(in *dm.AccessAuthReq, ld *deviceAuth.LoginDevice, ti *devices.TopicInfo) (err error)
- type DeviceRegisterLogic
- type DeviceRegisterPayload
- type LoginAuthLogic
- type RootCheckLogic
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AccessAuthLogic ¶
type AccessAuthLogic struct { logx.Logger GdDB *relationDB.GatewayDeviceRepo // contains filtered or unexported fields }
func NewAccessAuthLogic ¶
func NewAccessAuthLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AccessAuthLogic
func (*AccessAuthLogic) AccessAuth ¶
func (l *AccessAuthLogic) AccessAuth(in *dm.AccessAuthReq) (*dm.Response, error)
AccessAuth 设备操作认证
func (*AccessAuthLogic) Auth ¶
func (l *AccessAuthLogic) Auth(in *dm.AccessAuthReq) (err error)
func (*AccessAuthLogic) DeviceSelfAuth ¶ added in v0.3.0
func (l *AccessAuthLogic) DeviceSelfAuth(in *dm.AccessAuthReq) (err error)
DeviceSelfAuth 设备自己的topic认证
func (*AccessAuthLogic) SubSetAuth ¶ added in v0.3.0
func (l *AccessAuthLogic) SubSetAuth(in *dm.AccessAuthReq, ld *deviceAuth.LoginDevice, ti *devices.TopicInfo) (err error)
SubSetAuth 网关代理子设备topic校验
type DeviceRegisterLogic ¶ added in v0.5.1
type DeviceRegisterLogic struct { logx.Logger PiDB *relationDB.ProductInfoRepo DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewDeviceRegisterLogic ¶ added in v0.5.1
func NewDeviceRegisterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceRegisterLogic
func (*DeviceRegisterLogic) DeviceRegister ¶ added in v0.5.1
func (l *DeviceRegisterLogic) DeviceRegister(in *dm.DeviceRegisterReq) (*dm.DeviceRegisterResp, error)
设备动态注册
type DeviceRegisterPayload ¶ added in v0.5.1
type LoginAuthLogic ¶
type LoginAuthLogic struct { logx.Logger DiDB *relationDB.DeviceInfoRepo // contains filtered or unexported fields }
func NewLoginAuthLogic ¶
func NewLoginAuthLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginAuthLogic
func (*LoginAuthLogic) LoginAuth ¶
func (l *LoginAuthLogic) LoginAuth(in *dm.LoginAuthReq) (*dm.Response, error)
func (*LoginAuthLogic) UpdateLoginTime ¶
func (l *LoginAuthLogic) UpdateLoginTime()
type RootCheckLogic ¶
func NewRootCheckLogic ¶
func NewRootCheckLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RootCheckLogic
func (*RootCheckLogic) RootCheck ¶
func (l *RootCheckLogic) RootCheck(in *dm.RootCheckReq) (*dm.Response, error)
鉴定是否是root账号
Click to show internal directories.
Click to hide internal directories.