controller

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[T any](orig T) (result T)

func RemoveDuplicates

func RemoveDuplicates[T comparable](slice []T) []T

func RemoveDuplicatesF

func RemoveDuplicatesF[T any, C comparable](slice []T, f func(T) C) []T

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config configuration.Config) (*Controller, error)

func (*Controller) BulkGetFilteredDevices

func (this *Controller) BulkGetFilteredDevices(token string, requests model.BulkRequest) (result model.BulkResult, err error, code int)

func (*Controller) BulkGetFilteredDevicesV2

func (this *Controller) BulkGetFilteredDevicesV2(token string, requests model.BulkRequestV2) (result model.BulkResult, err error, code int)

func (*Controller) CombinedDevices

func (this *Controller) CombinedDevices(bulk model.BulkResult) (result []model.PermSearchDevice)

func (*Controller) CompleteBulkServices

func (this *Controller) CompleteBulkServices(token string, bulk model.BulkResult, request model.BulkRequest) (_ model.BulkResult, err error)

func (*Controller) CompleteBulkServicesV2

func (this *Controller) CompleteBulkServicesV2(token string, bulk model.BulkResult, request model.BulkRequestV2) (_ model.BulkResult, err error)

func (*Controller) CompleteServices

func (this *Controller) CompleteServices(token string, selectables []model.Selectable, filter []devicemodel.FilterCriteria) ([]model.Selectable, error)

func (*Controller) DeviceGroupHelper

func (this *Controller) DeviceGroupHelper(token string, deviceIds []string, search model.QueryFind, maintainGroupUsability bool, functionBlockList []string) (result model.DeviceGroupHelperResult, err error, code int)

func (*Controller) GetAspectNode

func (this *Controller) GetAspectNode(id string, token string) (result devicemodel.AspectNode, err error)

func (*Controller) GetConcept

func (this *Controller) GetConcept(id string, token string) (c devicemodel.Concept, err error)

func (*Controller) GetDeviceGroupCriteria

func (this *Controller) GetDeviceGroupCriteria(token string, deviceTypeCache *map[string]devicemodel.DeviceType, deviceCache *map[string]devicemodel.Device, deviceIds []string) (result []devicemodel.DeviceGroupFilterCriteria, err error, code int)

func (*Controller) GetDeviceTypeSelectables

func (this *Controller) GetDeviceTypeSelectables(token string, descriptions model.FilterCriteriaAndSet) (result []devicemodel.DeviceTypeSelectable, err error)

func (*Controller) GetDeviceTypeSelectablesCached

func (this *Controller) GetDeviceTypeSelectablesCached(token string, descriptions model.FilterCriteriaAndSet) (result []devicemodel.DeviceTypeSelectable, err error)

func (*Controller) GetDeviceTypeSelectablesCachedV2

func (this *Controller) GetDeviceTypeSelectablesCachedV2(token string, descriptions model.FilterCriteriaAndSet, includeIdModified bool) (result []devicemodel.DeviceTypeSelectable, err error)

func (*Controller) GetDeviceTypeSelectablesV2

func (this *Controller) GetDeviceTypeSelectablesV2(token string, descriptions model.FilterCriteriaAndSet, includeIdModified bool) (result []devicemodel.DeviceTypeSelectable, err error)

func (*Controller) GetFilteredDeviceTypes

func (this *Controller) GetFilteredDeviceTypes(token string, descriptions model.FilterCriteriaAndSet, interactions []string) (result []devicemodel.DeviceType, err error, code int)

func (*Controller) GetFilteredDevices

func (this *Controller) GetFilteredDevices(token string, descriptions model.FilterCriteriaAndSet, protocolBlockList []string, blockedInteraction devicemodel.Interaction, includeGroups bool, includeImports bool, withLocalDeviceIds []string) (result []model.Selectable, err error, code int)

func (*Controller) GetFilteredDevicesV2

func (this *Controller) GetFilteredDevicesV2(token string, descriptions model.FilterCriteriaAndSet, includeDevices bool, includeGroups bool, includeImports bool, withLocalDeviceIds []string, includeIdModified bool, importPathTrimFirstElement bool) (result []model.Selectable, err error, code int)

func (*Controller) GetFunction

func (this *Controller) GetFunction(id string, token string) (f devicemodel.Function, err error)

func (*Controller) GetFunctions

func (this *Controller) GetFunctions(token string) (functions []devicemodel.Function, err error)

func (*Controller) GetProtocols

func (this *Controller) GetProtocols(token string) (result []devicemodel.Protocol, err error, code int)

func (*Controller) Search

func (this *Controller) Search(token string, query model.QueryMessage, result interface{}) (err error, code int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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