deviceauth

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessAuthReq

type AccessAuthReq = dg.AccessAuthReq

type DeviceAuth

type DeviceAuth interface {
	// 设备登录认证
	LoginAuth(ctx context.Context, in *LoginAuthReq, opts ...grpc.CallOption) (*Response, error)
	// 设备操作认证
	AccessAuth(ctx context.Context, in *AccessAuthReq, opts ...grpc.CallOption) (*Response, error)
	// 设备动态注册
	DeviceRegister(ctx context.Context, in *DeviceRegisterReq, opts ...grpc.CallOption) (*DeviceRegisterResp, error)
}

func NewDeviceAuth

func NewDeviceAuth(cli zrpc.Client) DeviceAuth

func NewDirectDeviceAuth

func NewDirectDeviceAuth(svcCtx *svc.ServiceContext, svr dg.DeviceAuthServer) DeviceAuth

type DeviceRegisterReq

type DeviceRegisterReq = dg.DeviceRegisterReq

type DeviceRegisterResp

type DeviceRegisterResp = dg.DeviceRegisterResp

type LoginAuthReq

type LoginAuthReq = dg.LoginAuthReq

type Request

type Request = dg.Request

type Response

type Response = dg.Response

Jump to

Keyboard shortcuts

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