Documentation ¶
Index ¶
- func AccessPerm(ctx context.Context, dc DeviceCacheT, usc UserShareCacheT, ...) (err error)
- func SchemaAccess(ctx context.Context, dc DeviceCacheT, usc UserShareCacheT, ...) (outParam map[string]any, err error)
- type DeviceCacheT
- type DeviceSchemaCacheT
- type ProductCacheT
- type ProductSchemaCacheT
- type UserShareCacheT
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 DeviceSchemaCacheT ¶ added in v1.0.4
func NewDeviceSchemaCache ¶ added in v1.0.4
func NewDeviceSchemaCache(pm devicemanage.DeviceManage, pc ProductSchemaCacheT, fastEvent *eventBus.FastEvent) (DeviceSchemaCacheT, error)
type ProductCacheT ¶
type ProductCacheT = *caches.Cache[dm.ProductInfo, string]
func NewProductInfoCache ¶
func NewProductInfoCache(pm productmanage.ProductManage, fastEvent *eventBus.FastEvent) (ProductCacheT, error)
type ProductSchemaCacheT ¶ added in v1.0.4
func NewProductSchemaCache ¶ added in v1.0.4
func NewProductSchemaCache(pm productmanage.ProductManage, fastEvent *eventBus.FastEvent) (ProductSchemaCacheT, 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.