util

package
v0.0.0-...-1ee731d Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func GroupIotOptionsByDevice(options []model.IotOption) (result map[string][]model.IotOption)

GroupIotOptionsByDevice groups a list of model.IotOption by their device id none device options will be grouped under the "" key

func GroupIotOptionsByService

func GroupIotOptionsByService(options []model.IotOption) (result map[string][]model.IotOption)

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.

Jump to

Keyboard shortcuts

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