dmExport

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

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

func SchemaAccess(ctx context.Context, dc DeviceCacheT, usc UserShareCacheT, authType def.AuthType, dev devices.Core, param map[string]any) (outParam map[string]any, err error)

Types

type DeviceCacheT

type DeviceCacheT = *caches.Cache[dm.DeviceInfo, devices.Core]

func NewDeviceInfoCache

func NewDeviceInfoCache(devM devicemanage.DeviceManage, fastEvent *eventBus.FastEvent) (DeviceCacheT, error)

type DeviceSchemaCacheT added in v1.0.4

type DeviceSchemaCacheT = *caches.Cache[schema.Model, devices.Core]

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

type ProductSchemaCacheT = *caches.Cache[schema.Model, string]

func NewProductSchemaCache added in v1.0.4

func NewProductSchemaCache(pm productmanage.ProductManage, fastEvent *eventBus.FastEvent) (ProductSchemaCacheT, error)

type UserShareCacheT

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)

Jump to

Keyboard shortcuts

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