Versions in this module Expand all Collapse all v1 v1.0.1 Oct 5, 2023 v1.0.0 Aug 21, 2023 Changes in this version + const AttributeUsedForZwave + const AttributeZwaveTypeMappingKey + const DtFallbackKey + func Do(req *http.Request) (result T, code int, err error) + func PermissionSearch(token string, searchUrl string, query QueryMessage, result interface{}) (err error, code int) + type Auth interface + EnsureAccess func(config configuration.Config) (token string, err error) + type ConditionConfig struct + Feature string + Operation QueryOperationType + Ref string + Value interface{} + type DeviceRepo struct + func New(config configuration.Config, auth Auth) (*DeviceRepo, error) + func (this *DeviceRepo) CreateDeviceTypeWithDistinctAttributes(key string, dt models.DeviceType, attributeKeys []string) (result models.DeviceType, code int, err error) + func (this *DeviceRepo) FindDeviceTypeId(device model.DeviceInfo) (dtId string, usedFallback bool, err error) + func (this *DeviceRepo) ListZwaveDeviceTypes() (list []models.DeviceType, err error) + type Permissions struct + A bool + R bool + W bool + X bool + type QueryCheckIds struct + Ids []string + Rights string + type QueryFind struct + Filter *Selection + Search string + type QueryListCommons struct + Limit int + Offset int + Rights string + SortBy string + SortDesc bool + type QueryListIds struct + Ids []string + type QueryMessage struct + CheckIds *QueryCheckIds + Find *QueryFind + ListIds *QueryListIds + Resource string + TermAggregate *string + type QueryOperationType string + const QueryAnyValueInFeatureOperation + const QueryEqualOperation + const QueryUnequalOperation + type Selection struct + And []Selection + Condition *ConditionConfig + Not *Selection + Or []Selection