dmExport

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: AGPL-3.0 Imports: 14 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 ProductCacheT

type ProductCacheT = *caches.Cache[dm.ProductInfo, string]

func NewProductInfoCache

func NewProductInfoCache(pm productmanage.ProductManage, fastEvent *eventBus.FastEvent) (ProductCacheT, error)

type SchemaCacheT

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

func NewSchemaInfoCache

func NewSchemaInfoCache(pm productmanage.ProductManage, fastEvent *eventBus.FastEvent) (SchemaCacheT, 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