Documentation ¶
Index ¶
- Variables
- func RemoveVoidVariables(contents []model.Content) (result []model.Content)
- func UsePathAllowList(contents []model.Content, pathAllowList []string) (result []model.Content)
- type CharacteristicId
- type CharacteristicsPathResponse
- type ConceptId
- type ConceptRepo
- type Converter
- type DeviceRepository
- type Marshaller
- func (this *Marshaller) GetPathOption(deviceTypeIds []string, functionId string, aspectId string, ...) (result map[string][]PathOptionsResultElement, err error, code int)
- func (this *Marshaller) GetServiceCharacteristicPath(service model.Service, characteristicId string) (result CharacteristicsPathResponse, err error, code int)
- func (this *Marshaller) MarshalInput(partial mapping.Partial, inputCharacteristicValue interface{}, ...) (result string, err error)
- func (this *Marshaller) MarshalInputs(protocol model.Protocol, service model.Service, input interface{}, ...) (result map[string]string, err error)
- func (this *Marshaller) UnmarshalOutputs(protocol model.Protocol, service model.Service, outputMap map[string]string, ...) (result interface{}, err error)
- type PathOptionsResultElement
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCharacteristicNotFoundInService = errors.New("characteristic not in service")
View Source
var ErrorNoMatchFound = errors.New("no match found")
Functions ¶
func RemoveVoidVariables ¶
Types ¶
type CharacteristicId ¶
type CharacteristicId = string
type ConceptRepo ¶
type ConceptRepo interface { GetConceptsOfCharacteristic(characteristicId string) (conceptIds []string, err error) GetCharacteristic(id CharacteristicId) (model.Characteristic, error) GetRootCharacteristics(ids []CharacteristicId) (result []CharacteristicId) GetCharacteristicsOfFunction(functionId string) (characteristicIds []string, err error) }
type Converter ¶
type Converter interface {
Cast(in interface{}, from CharacteristicId, to CharacteristicId) (out interface{}, err error)
}
type DeviceRepository ¶
type DeviceRepository interface { GetDeviceType(id string) (result model.DeviceType, err error, code int) GetAspectNode(id string) (result model.AspectNode, err error) }
type Marshaller ¶
type Marshaller struct { ConceptRepo ConceptRepo // contains filtered or unexported fields }
func New ¶
func New(converter Converter, concepts ConceptRepo, devicerepo DeviceRepository) *Marshaller
func (*Marshaller) GetPathOption ¶
func (this *Marshaller) GetPathOption(deviceTypeIds []string, functionId string, aspectId string, characteristicIdFilter []string, withEnvelope bool) (result map[string][]PathOptionsResultElement, err error, code int)
func (*Marshaller) GetServiceCharacteristicPath ¶
func (this *Marshaller) GetServiceCharacteristicPath(service model.Service, characteristicId string) (result CharacteristicsPathResponse, err error, code int)
func (*Marshaller) MarshalInput ¶
func (this *Marshaller) MarshalInput(partial mapping.Partial, inputCharacteristicValue interface{}, inputCharacteristic model.Characteristic, serviceCharacteristic model.Characteristic, serviceVariable model.ContentVariable, serializationId models.Serialization) (result string, err error)
func (*Marshaller) MarshalInputs ¶
func (this *Marshaller) MarshalInputs(protocol model.Protocol, service model.Service, input interface{}, inputCharacteristicId CharacteristicId, pathAllowList []string, configurables ...configurables.Configurable) (result map[string]string, err error)
func (*Marshaller) UnmarshalOutputs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.