Documentation ¶
Index ¶
- Variables
- type AccessAuthLogic
- func (l *AccessAuthLogic) AccessAuth(in *dg.AccessAuthReq) (*dg.Response, error)
- func (l *AccessAuthLogic) Auth(in *dg.AccessAuthReq) (err error)
- func (l *AccessAuthLogic) DeviceSelfAuth(in *dg.AccessAuthReq) (err error)
- func (l *AccessAuthLogic) SubSetAuth(in *dg.AccessAuthReq, ld *deviceAuth.LoginDevice, ti *devices.TopicInfo) (err error)
- type DeviceRegisterLogic
- type DeviceRegisterPayload
- type LoginAuthLogic
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AccessAuthLogic ¶
func NewAccessAuthLogic ¶
func NewAccessAuthLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AccessAuthLogic
func (*AccessAuthLogic) AccessAuth ¶
func (l *AccessAuthLogic) AccessAuth(in *dg.AccessAuthReq) (*dg.Response, error)
设备操作认证
func (*AccessAuthLogic) Auth ¶
func (l *AccessAuthLogic) Auth(in *dg.AccessAuthReq) (err error)
func (*AccessAuthLogic) DeviceSelfAuth ¶
func (l *AccessAuthLogic) DeviceSelfAuth(in *dg.AccessAuthReq) (err error)
DeviceSelfAuth 设备自己的topic认证
func (*AccessAuthLogic) SubSetAuth ¶
func (l *AccessAuthLogic) SubSetAuth(in *dg.AccessAuthReq, ld *deviceAuth.LoginDevice, ti *devices.TopicInfo) (err error)
SubSetAuth 网关代理子设备topic校验
type DeviceRegisterLogic ¶
func NewDeviceRegisterLogic ¶
func NewDeviceRegisterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceRegisterLogic
func (*DeviceRegisterLogic) DeviceRegister ¶
func (l *DeviceRegisterLogic) DeviceRegister(in *dg.DeviceRegisterReq) (*dg.DeviceRegisterResp, error)
设备动态注册
type DeviceRegisterPayload ¶
type LoginAuthLogic ¶
func NewLoginAuthLogic ¶
func NewLoginAuthLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginAuthLogic
func (*LoginAuthLogic) LoginAuth ¶
func (l *LoginAuthLogic) LoginAuth(in *dg.LoginAuthReq) (*dg.Response, error)
设备登录认证
Click to show internal directories.
Click to hide internal directories.