controller

package
v0.0.0-...-25a2eff Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAspectRdfType

func SetAspectRdfType(aspect *model.Aspect)

///////////////////////

source

///////////////////////

func SetCharacteristicRdfTypes

func SetCharacteristicRdfTypes(characteristic *model.Characteristic)

func SetConceptRdfTypes

func SetConceptRdfTypes(concept *model.Concept)

func SetDeviceClassRdfType

func SetDeviceClassRdfType(deviceclass *model.DeviceClass)

///////////////////////

source

///////////////////////

func SetDevicetypeRdfTypes

func SetDevicetypeRdfTypes(deviceType *model.DeviceType)

func SetFunctionRdfType

func SetFunctionRdfType(function *model.Function)

///////////////////////

source

///////////////////////

func SetLocationRdfType

func SetLocationRdfType(location *model.Location)

///////////////////////

source

///////////////////////

func SetSubCharacteristicRdfTypes

func SetSubCharacteristicRdfTypes(characteristic []model.Characteristic)

Types

type Controller

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

func New

func New(config config.Config, db database.Database) (ctrl *Controller, err error)

func (*Controller) DeleteAspect

func (this *Controller) DeleteAspect(id string) (err error)

func (*Controller) DeleteCharacteristic

func (this *Controller) DeleteCharacteristic(id string) (err error)

func (*Controller) DeleteConcept

func (this *Controller) DeleteConcept(id string, withNested bool) (err error)

func (*Controller) DeleteDeviceClass

func (this *Controller) DeleteDeviceClass(id string) (err error)

func (*Controller) DeleteDeviceType

func (this *Controller) DeleteDeviceType(id string) (err error)

func (*Controller) DeleteFunction

func (this *Controller) DeleteFunction(id string) (err error)

func (*Controller) DeleteLocation

func (this *Controller) DeleteLocation(id string) (err error)

func (*Controller) GetAspect

func (this *Controller) GetAspect(id string) (result model.Aspect, err error, errCode int)

func (*Controller) GetAspects

func (this *Controller) GetAspects() (result []model.Aspect, err error, errCode int)

func (*Controller) GetAspectsMeasuringFunctions

func (this *Controller) GetAspectsMeasuringFunctions(subject string) (result []model.Function, err error, errCode int)

func (*Controller) GetAspectsWithMeasuringFunction

func (this *Controller) GetAspectsWithMeasuringFunction() (result []model.Aspect, err error, errCode int)

func (*Controller) GetCharacteristic

func (this *Controller) GetCharacteristic(subject string) (result model.Characteristic, err error, errCode int)

func (*Controller) GetConceptWithCharacteristics

func (this *Controller) GetConceptWithCharacteristics(subject string) (result model.ConceptWithCharacteristics, err error, errCode int)

func (*Controller) GetConceptWithoutCharacteristics

func (this *Controller) GetConceptWithoutCharacteristics(subject string) (result model.Concept, err error, errCode int)

func (*Controller) GetDeviceClass

func (this *Controller) GetDeviceClass(id string) (result model.DeviceClass, err error, errCode int)

func (*Controller) GetDeviceClasses

func (this *Controller) GetDeviceClasses() (result []model.DeviceClass, err error, errCode int)

func (*Controller) GetDeviceClassesControllingFunctions

func (this *Controller) GetDeviceClassesControllingFunctions(subject string) (result []model.Function, err error, errCode int)

func (*Controller) GetDeviceClassesFunctions

func (this *Controller) GetDeviceClassesFunctions(subject string) (result []model.Function, err error, errCode int)

func (*Controller) GetDeviceClassesWithControllingFunctions

func (this *Controller) GetDeviceClassesWithControllingFunctions() (result []model.DeviceClass, err error, errCode int)

func (*Controller) GetDeviceType

func (this *Controller) GetDeviceType(deviceTypeId string) (result model.DeviceType, err error, errCode int)

func (*Controller) GetDeviceTypesFiltered

func (this *Controller) GetDeviceTypesFiltered(filter []model.DeviceTypesFilter) (result []model.DeviceType, err error, errCode int)

func (*Controller) GetFunction

func (this *Controller) GetFunction(id string) (result model.Function, err error, errCode int)

func (*Controller) GetFunctions

func (this *Controller) GetFunctions(limit int, offset int, search string, direction string) (result model.FunctionList, err error, errCode int)

func (*Controller) GetFunctionsByType

func (this *Controller) GetFunctionsByType(funcType string) (result []model.Function, err error, errCode int)

func (*Controller) GetLeafCharacteristics

func (this *Controller) GetLeafCharacteristics() (result []model.Characteristic, err error, errCode int)

func (*Controller) GetLocation

func (this *Controller) GetLocation(id string) (result model.Location, err error, errCode int)

func (*Controller) PermissionCheck

func (this *Controller) PermissionCheck(token string, id string, permission string, resource string) (err error, code int)

func (*Controller) PermissionCheckForLocation

func (this *Controller) PermissionCheckForLocation(token string, id string, permission string) (err error, code int)

func (*Controller) RdfXmlFrame

func (*Controller) RdfXmlFrame(rdfxml string, result interface{}, rootElement string) (err error)

func (*Controller) RdfXmlToModel

func (this *Controller) RdfXmlToModel(rdfxml string, result interface{}) (err error)

deprecated

func (*Controller) RdfXmlToModelWithContext

func (*Controller) RdfXmlToModelWithContext(rdfxml string, result interface{}, contextDoc map[string]interface{}) (err error)

func (*Controller) SetAspect

func (this *Controller) SetAspect(aspect model.Aspect, owner string) (err error)

func (*Controller) SetCharacteristic

func (this *Controller) SetCharacteristic(conceptId string, characteristic model.Characteristic, owner string) (err error)

func (*Controller) SetConcept

func (this *Controller) SetConcept(concept model.Concept, owner string) (err error)

func (*Controller) SetDeviceClass

func (this *Controller) SetDeviceClass(deviceclass model.DeviceClass, owner string) (err error)

func (*Controller) SetDeviceType

func (this *Controller) SetDeviceType(deviceType model.DeviceType, owner string) (err error)

func (*Controller) SetFunction

func (this *Controller) SetFunction(function model.Function, owner string) (err error)

func (*Controller) SetLocation

func (this *Controller) SetLocation(location model.Location, owner string) (err error)

func (*Controller) ValidateAspect

func (this *Controller) ValidateAspect(aspect model.Aspect) (error, int)

func (*Controller) ValidateAspects

func (this *Controller) ValidateAspects(aspects []model.Aspect) (error, int)

func (*Controller) ValidateCharacteristics

func (this *Controller) ValidateCharacteristics(characteristic model.Characteristic) (error, int)

func (*Controller) ValidateConcept

func (this *Controller) ValidateConcept(concept model.Concept) (err error, code int)

func (*Controller) ValidateDeviceClass

func (this *Controller) ValidateDeviceClass(deviceClass model.DeviceClass) (error, int)

func (*Controller) ValidateDeviceType

func (this *Controller) ValidateDeviceType(dt model.DeviceType) (err error, code int)

func (*Controller) ValidateFunction

func (this *Controller) ValidateFunction(function model.Function) (error, int)

func (*Controller) ValidateFunctions

func (this *Controller) ValidateFunctions(functions []model.Function) (error, int)

func (*Controller) ValidateLocation

func (this *Controller) ValidateLocation(location model.Location) (error, int)

func (*Controller) ValidateService

func (this *Controller) ValidateService(services []model.Service) (error, int)

Jump to

Keyboard shortcuts

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