Documentation ¶
Index ¶
- Variables
- type CharacteristicId
- type CharacteristicsRepo
- type Converter
- type DeviceRepository
- type Marshaller
- func (this *Marshaller) GetInputPaths(service model.Service, functionId string, aspectNode *model.AspectNode) (result []string)
- func (this *Marshaller) GetOutputPaths(service model.Service, functionId string, aspectNode *model.AspectNode) (result []string)
- func (this *Marshaller) Marshal(protocol model.Protocol, service model.Service, ...) (result map[string]string, err error)
- func (this *Marshaller) SortPathsByAspectDistance(repo DeviceRepository, service model.Service, aspect *model.AspectNode, ...) (result []string, err error)
- func (this *Marshaller) Unmarshal(protocol model.Protocol, service model.Service, characteristicId string, ...) (result interface{}, err error)
- type PathAspectInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var PathNotFoundInMessage = errors.New("path not found in message")
Functions ¶
This section is empty.
Types ¶
type CharacteristicId ¶
type CharacteristicId = string
type CharacteristicsRepo ¶
type Converter ¶
type Converter interface { Cast(in interface{}, from CharacteristicId, to CharacteristicId) (out interface{}, err error) CastWithExtension(in interface{}, from CharacteristicId, to CharacteristicId, extensions []models.ConverterExtension) (out interface{}, err error) }
type DeviceRepository ¶
type DeviceRepository interface {
GetAspectNode(id string) (model.AspectNode, error)
}
type Marshaller ¶
type Marshaller struct {
// contains filtered or unexported fields
}
func New ¶
func New(config config.Config, converter Converter, characteristics CharacteristicsRepo) *Marshaller
func (*Marshaller) GetInputPaths ¶
func (this *Marshaller) GetInputPaths(service model.Service, functionId string, aspectNode *model.AspectNode) (result []string)
func (*Marshaller) GetOutputPaths ¶
func (this *Marshaller) GetOutputPaths(service model.Service, functionId string, aspectNode *model.AspectNode) (result []string)
func (*Marshaller) Marshal ¶
func (this *Marshaller) Marshal(protocol model.Protocol, service model.Service, data []model.MarshallingV2RequestData) (result map[string]string, err error)
func (*Marshaller) SortPathsByAspectDistance ¶
func (this *Marshaller) SortPathsByAspectDistance(repo DeviceRepository, service model.Service, aspect *model.AspectNode, paths []string) (result []string, err error)
type PathAspectInfo ¶
Click to show internal directories.
Click to hide internal directories.