Documentation ¶
Index ¶
- type Cache
- func (this *Cache) CreateDevice(device model.Device) (result model.Device, err error)
- func (this *Cache) EnsureLocalDeviceExistence(device model.Device) (result model.Device, err error)
- func (this *Cache) GetDevice(id string) (result model.Device, err error)
- func (this *Cache) GetDeviceByLocalId(deviceUrl string) (result model.Device, err error)
- func (this *Cache) GetDeviceType(id string) (result model.DeviceType, err error)
- func (this *Cache) GetProtocol(id string) (result model.Protocol, err error)
- type Iot
- func (this *Iot) CreateDevice(device model.Device, token security.JwtToken) (result model.Device, err error)
- func (this *Iot) CreateDeviceType(deviceType model.DeviceType, token security.JwtToken) (dt model.DeviceType, err error)
- func (this *Iot) CreateHub(hub model.Hub, cred security.JwtToken) (result model.Hub, err error)
- func (this *Iot) CreateHubWithFixedId(hub model.Hub, adminToken security.JwtToken, userId string) (result model.Hub, err error)
- func (this *Iot) DeleteHub(id string, cred security.JwtToken) (err error)
- func (this *Iot) ExistsHub(id string, cred security.JwtToken) (exists bool, err error)
- func (this *Iot) FindDeviceTypesWithAttributes(attributes []model.Attribute, token security.JwtToken) (dt []model.DeviceType, err error)
- func (this *Iot) GetCharacteristicById(id string, token security.JwtToken) (characteristic model.Characteristic, err error)
- func (this *Iot) GetDevice(id string, token security.JwtToken) (device model.Device, err error)
- func (this *Iot) GetDeviceByLocalId(localId string, token security.JwtToken) (device model.Device, err error)
- func (this *Iot) GetDeviceType(id string, token security.JwtToken) (dt model.DeviceType, err error)
- func (this *Iot) GetDeviceUserRights(token security.JwtToken, deviceId string) (rights model.ResourceRights, err error)
- func (this *Iot) GetHub(id string, cred security.JwtToken, optionals ...options.Option) (hub model.Hub, err error)
- func (this *Iot) GetHubsByDeviceLocalId(localId string, token security.JwtToken) (hubs []model.Hub, err error)
- func (this *Iot) GetProtocol(id string, token security.JwtToken) (protocol model.Protocol, err error)
- func (this *Iot) UpdateDevice(device model.Device, token security.JwtToken) (result model.Device, err error)
- func (this *Iot) UpdateDeviceType(deviceType model.DeviceType, token security.JwtToken) (dt model.DeviceType, err error)
- func (this *Iot) UpdateHub(id string, hub model.Hub, cred security.JwtToken) (result model.Hub, err error)
- type PreparedCache
- func (this *PreparedCache) CreateDevice(token security.JwtToken, device model.Device) (result model.Device, err error)
- func (this *PreparedCache) CreateDeviceType(token security.JwtToken, deviceType model.DeviceType) (result model.DeviceType, err error)
- func (this *PreparedCache) EnsureLocalDeviceExistence(token security.JwtToken, device model.Device) (result model.Device, err error)
- func (this *PreparedCache) GetCache() *cache.Cache
- func (this *PreparedCache) GetCharacteristicById(id string, token security.JwtToken) (characteristic model.Characteristic, err error)
- func (this *PreparedCache) GetDevice(token security.JwtToken, id string) (result model.Device, err error)
- func (this *PreparedCache) GetDeviceByLocalId(token security.JwtToken, deviceUrl string) (result model.Device, err error)
- func (this *PreparedCache) GetDeviceType(token security.JwtToken, id string) (result model.DeviceType, err error)
- func (this *PreparedCache) GetProtocol(token security.JwtToken, id string) (result model.Protocol, err error)
- func (this *PreparedCache) InvalidateDeviceTypeCache(deviceTypeId string)
- func (this *PreparedCache) UpdateDevice(token security.JwtToken, device model.Device) (result model.Device, err error)
- func (this *PreparedCache) UpdateDeviceType(token security.JwtToken, deviceType model.DeviceType) (result model.DeviceType, err error)
- func (this *PreparedCache) WithToken(token security.JwtToken) *Cache
- type ResourceRights
- type Right
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) CreateDevice ¶
func (*Cache) EnsureLocalDeviceExistence ¶
func (*Cache) GetDeviceByLocalId ¶
func (*Cache) GetDeviceType ¶
func (this *Cache) GetDeviceType(id string) (result model.DeviceType, err error)
type Iot ¶
type Iot struct {
// contains filtered or unexported fields
}
func (*Iot) CreateDevice ¶
func (*Iot) CreateDeviceType ¶
func (this *Iot) CreateDeviceType(deviceType model.DeviceType, token security.JwtToken) (dt model.DeviceType, err error)
func (*Iot) CreateHubWithFixedId ¶
func (*Iot) FindDeviceTypesWithAttributes ¶
func (*Iot) GetCharacteristicById ¶
func (*Iot) GetDeviceByLocalId ¶
func (*Iot) GetDeviceType ¶
func (*Iot) GetDeviceUserRights ¶
func (*Iot) GetHubsByDeviceLocalId ¶
func (*Iot) GetProtocol ¶
func (*Iot) UpdateDevice ¶
func (*Iot) UpdateDeviceType ¶
func (this *Iot) UpdateDeviceType(deviceType model.DeviceType, token security.JwtToken) (dt model.DeviceType, err error)
type PreparedCache ¶
type PreparedCache struct { Debug bool // contains filtered or unexported fields }
func (*PreparedCache) CreateDevice ¶
func (*PreparedCache) CreateDeviceType ¶
func (this *PreparedCache) CreateDeviceType(token security.JwtToken, deviceType model.DeviceType) (result model.DeviceType, err error)
func (*PreparedCache) EnsureLocalDeviceExistence ¶
func (*PreparedCache) GetCache ¶
func (this *PreparedCache) GetCache() *cache.Cache
func (*PreparedCache) GetCharacteristicById ¶
func (this *PreparedCache) GetCharacteristicById(id string, token security.JwtToken) (characteristic model.Characteristic, err error)
func (*PreparedCache) GetDeviceByLocalId ¶
func (*PreparedCache) GetDeviceType ¶
func (this *PreparedCache) GetDeviceType(token security.JwtToken, id string) (result model.DeviceType, err error)
func (*PreparedCache) GetProtocol ¶
func (*PreparedCache) InvalidateDeviceTypeCache ¶
func (this *PreparedCache) InvalidateDeviceTypeCache(deviceTypeId string)
func (*PreparedCache) UpdateDevice ¶
func (*PreparedCache) UpdateDeviceType ¶
func (this *PreparedCache) UpdateDeviceType(token security.JwtToken, deviceType model.DeviceType) (result model.DeviceType, err error)
type ResourceRights ¶
Click to show internal directories.
Click to hide internal directories.