Documentation ¶
Index ¶
- Variables
- func GetDevicesWithService(iotClient client.Interface, token string, entity model.IotOption, ...) (result []model.IotOption, err error)
- func GroupIotOptionsByDevice(options []model.IotOption) (result map[string][]model.IotOption)
- func GroupIotOptionsByService(options []model.IotOption) (result map[string][]model.IotOption)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDeviceOrGroupSelection = errors.New("expect device or group selection")
Functions ¶
func GetDevicesWithService ¶
func GetDevicesWithService(iotClient client.Interface, token string, entity model.IotOption, criteria []devicemodel.FilterCriteria) (result []model.IotOption, err error)
func GroupIotOptionsByDevice ¶
GroupIotOptionsByDevice groups a list of model.IotOption by their device id none device options will be grouped under the "" key
func GroupIotOptionsByService ¶
GroupIotOptionsByService groups a list of model.IotOption by their service id device options without serviceId will be grouped under the "" key none device options will be grouped under the "" key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.