Versions in this module Expand all Collapse all v0 v0.1.160 Apr 8, 2021 Changes in this version + func FromProtocolModelsToDTOs(protocolModels map[string]models.ProtocolProperties) map[string]ProtocolProperties + func ToAutoEventModel(a AutoEvent) models.AutoEvent + func ToAutoEventModels(autoEventDTOs []AutoEvent) []models.AutoEvent + func ToCommandModel(c Command) models.Command + func ToCommandModels(commandDTOs []Command) []models.Command + func ToDeviceModel(dto Device) models.Device + func ToDeviceProfileModel(deviceProfileDTO DeviceProfile) models.DeviceProfile + func ToDeviceResourceModel(d DeviceResource) models.DeviceResource + func ToDeviceResourceModels(deviceResourceDTOs []DeviceResource) []models.DeviceResource + func ToDeviceServiceModel(dto DeviceService) models.DeviceService + func ToProfileResourceModel(p ProfileResource) models.ProfileResource + func ToProfileResourceModels(profileResourceDTOs []ProfileResource) []models.ProfileResource + func ToPropertyValueModel(p PropertyValue) models.PropertyValue + func ToProtocolModels(protocolDTOs map[string]ProtocolProperties) map[string]models.ProtocolProperties + func ToProtocolPropertiesModel(p ProtocolProperties) models.ProtocolProperties + func ToProvisionWatcherModel(dto ProvisionWatcher) models.ProvisionWatcher + func ToReadingModel(r BaseReading) models.Reading + func ToResourceOperationModel(ro ResourceOperation) models.ResourceOperation + func ValidateDeviceProfileDTO(profile DeviceProfile) error + type AutoEvent struct + Frequency string + OnChange bool + Resource string + func FromAutoEventModelToDTO(a models.AutoEvent) AutoEvent + func FromAutoEventModelsToDTOs(autoEvents []models.AutoEvent) []AutoEvent + type BaseReading struct + Created int64 + DeviceName string + Id string + Origin int64 + ProfileName string + ResourceName string + ValueType string + func FromReadingModelToDTO(reading models.Reading) BaseReading + func (b BaseReading) Validate() error + type BinaryReading struct + BinaryValue []byte + MediaType string + type Command struct + Get bool + Name string + Put bool + func FromCommandModelToDTO(c models.Command) Command + func FromCommandModelsToDTOs(commandModels []models.Command) []Command + type Device struct + AdminState string + AutoEvents []AutoEvent + Created int64 + Description string + Id string + Labels []string + LastConnected int64 + LastReported int64 + Location interface{} + Modified int64 + Name string + OperatingState string + ProfileName string + Protocols map[string]ProtocolProperties + ServiceName string + func FromDeviceModelToDTO(d models.Device) Device + type DeviceProfile struct + CoreCommands []Command + Description string + DeviceCommands []ProfileResource + DeviceResources []DeviceResource + Id string + Labels []string + Manufacturer string + Model string + Name string + func FromDeviceProfileModelToDTO(deviceProfile models.DeviceProfile) DeviceProfile + type DeviceResource struct + Attributes map[string]string + Description string + Name string + Properties PropertyValue + Tag string + func FromDeviceResourceModelToDTO(d models.DeviceResource) DeviceResource + func FromDeviceResourceModelsToDTOs(deviceResourceModels []models.DeviceResource) []DeviceResource + type DeviceService struct + AdminState string + BaseAddress string + Created int64 + Description string + Id string + Labels []string + LastConnected int64 + LastReported int64 + Modified int64 + Name string + func FromDeviceServiceModelToDTO(ds models.DeviceService) DeviceService + type Event struct + Created int64 + DeviceName string + Id string + Origin int64 + ProfileName string + Readings []BaseReading + Tags map[string]string + func FromEventModelToDTO(event models.Event) Event + func (e Event) ToXML() (string, error) + type ProfileResource struct + Get []ResourceOperation + Name string + Set []ResourceOperation + func FromProfileResourceModelToDTO(p models.ProfileResource) ProfileResource + func FromProfileResourceModelsToDTOs(profileResourceModels []models.ProfileResource) []ProfileResource + type PropertyValue struct + Assertion string + Base string + DefaultValue string + Mask string + Maximum string + MediaType string + Minimum string + Offset string + ReadWrite string + Scale string + Shift string + Type string + Units string + func FromPropertyValueModelToDTO(p models.PropertyValue) PropertyValue + type ProtocolProperties map[string]string + func FromProtocolPropertiesModelToDTO(p models.ProtocolProperties) ProtocolProperties + type ProvisionWatcher struct + AdminState string + AutoEvents []AutoEvent + BlockingIdentifiers map[string][]string + Id string + Identifiers map[string]string + Labels []string + Name string + ProfileName string + ServiceName string + func FromProvisionWatcherModelToDTO(pw models.ProvisionWatcher) ProvisionWatcher + type ResourceOperation struct + DeviceResource string + Mappings map[string]string + Parameter string + func FromResourceOperationModelToDTO(ro models.ResourceOperation) ResourceOperation + type SimpleReading struct + Value string + type UpdateDevice struct + AdminState *string + AutoEvents []AutoEvent + Description *string + Id *string + Labels []string + LastConnected *int64 + LastReported *int64 + Location interface{} + Name *string + Notify *bool + OperatingState *string + ProfileName *string + Protocols map[string]ProtocolProperties + ServiceName *string + type UpdateDeviceService struct + AdminState *string + BaseAddress *string + Id *string + Labels []string + Name *string + type UpdateProvisionWatcher struct + AdminState *string + AutoEvents []AutoEvent + BlockingIdentifiers map[string][]string + Id *string + Identifiers map[string]string + Labels []string + Name *string + ProfileName *string + ServiceName *string