Documentation ¶
Index ¶
- Variables
- func CleanMsg(msg map[string]interface{}, service model.Service) (result map[string]interface{}, err error)
- func DefaultMissingFields(msg map[string]interface{}, service models.Service) (result map[string]interface{}, err error)
- func ParseTopic(topic string) (prefix string, deviceUri string, serviceUri string, err error)
- func RemoveUnknownFields(msg map[string]interface{}, service models.Service) (_ map[string]interface{}, err error)
- type Impl
- func (this *Impl) GetImportEventDescriptions(importId string) ([]model.EventDesc, error)
- func (this *Impl) GetServiceEventDescriptions(deviceId string, serviceId string) (result []model.EventDesc, err error)
- func (this *Impl) IsImportMessage(message model.ConsumerMessage) bool
- func (this *Impl) IsServiceMessage(message model.ConsumerMessage) bool
- func (this *Impl) ParseImportMessage(message model.ConsumerMessage) (importId string, payload Payload, err error)
- func (this *Impl) ParseServiceMessage(message model.ConsumerMessage) (deviceId string, serviceId string, payload Payload, err error)
- func (this *Impl) SerializeMessage(payload Payload, service models.Service) (result model.SerializedMessage, err error)
- type Payload
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingField = errors.New("missing field")
View Source
var ErrUnexpectedField = errors.New("unexpected field")
View Source
var ErrUnexpectedType = errors.New("unexpected type")
Functions ¶
func DefaultMissingFields ¶
func ParseTopic ¶
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func (*Impl) GetImportEventDescriptions ¶
func (*Impl) GetServiceEventDescriptions ¶
func (*Impl) IsImportMessage ¶
func (this *Impl) IsImportMessage(message model.ConsumerMessage) bool
func (*Impl) IsServiceMessage ¶
func (this *Impl) IsServiceMessage(message model.ConsumerMessage) bool
func (*Impl) ParseImportMessage ¶
func (*Impl) ParseServiceMessage ¶
func (*Impl) SerializeMessage ¶
Click to show internal directories.
Click to hide internal directories.