Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessPerm ¶
func AccessPerm(ctx context.Context, dc DeviceCacheT, usc UserShareCacheT, authType def.AuthType, dev devices.Core, access string) (err error)
func SchemaAccess ¶
Types ¶
type DeviceCacheT ¶
func NewDeviceInfoCache ¶
func NewDeviceInfoCache(devM devicemanage.DeviceManage, fastEvent *eventBus.FastEvent) (DeviceCacheT, error)
type ProductCacheT ¶
type ProductCacheT = *caches.Cache[dm.ProductInfo, string]
func NewProductInfoCache ¶
func NewProductInfoCache(pm productmanage.ProductManage, fastEvent *eventBus.FastEvent) (ProductCacheT, error)
type SchemaCacheT ¶
func NewSchemaInfoCache ¶
func NewSchemaInfoCache(pm productmanage.ProductManage, fastEvent *eventBus.FastEvent) (SchemaCacheT, error)
type UserShareCacheT ¶
type UserShareCacheT = *caches.Cache[dm.UserDeviceShareInfo, userShared.UserShareKey]
type UserShareKey struct { ProductID string `json:"productID"` //产品id DeviceName string `json:"deviceName"` //设备名称 SharedUserID int64 `json:"sharedUserID"` }
func NewUserShareCache ¶
func NewUserShareCache(devM userdevice.UserDevice, fastEvent *eventBus.FastEvent) (UserShareCacheT, error)
Click to show internal directories.
Click to hide internal directories.