Versions in this module Expand all Collapse all v1 v1.9.1 Mar 9, 2022 Changes in this version + func BatchInsertChildDevice(d *entity.Device, das plugin.DeviceInstances, tx *gorm.DB) error + func GetControlAttributes(d entity.Device) (attributes []entity.Attribute, err error) + func GetDeviceInstances(d entity.Device, up entity.UserPermissions) (das plugin.DeviceInstances, err error) + func GetInstances(areaID uint64, userID int, pluginID, identity string) (das plugin.DeviceInstances, err error) + func GetOrInitDeviceInstances(d entity.Device, up entity.UserPermissions) (das plugin.DeviceInstances, err error) + func GetShadow(d entity.Device) (shadow entity.Shadow, err error) + func GetThingModel(d entity.Device) (thingModel plugin.DeviceInstances, err error) + func GetUserDeviceInstances(userID int, d entity.Device) (das plugin.DeviceInstances, err error) + func SyncDevice(d *entity.Device) (err error) + func UpdateDeviceShadow(em event.EventMessage) error + func UpdateShadowReported(d entity.Device, attr entity.Attribute) (err error) v1.5.0 Nov 23, 2021 Changes in this version + func AddDevicePermissionForRoles(device entity.Device, tx *gorm.DB) (err error) + func ControlPermissions(d entity.Device) ([]types.Permission, error) + func Create(areaID uint64, device *entity.Device) (err error) + func IsDeviceControlPermit(areaID uint64, userID int, pluginID, identity string, data json.RawMessage) bool + func IsPermit(c *gin.Context, p types.Permission) bool + func ManagePermissions(d entity.Device) []types.Permission + func Permissions(d entity.Device) (ps []types.Permission, err error)