Documentation ¶
Index ¶
- Constants
- func CheckAssertion(cv *dsModels.CommandValue, assertion string, deviceName string, ...) error
- func CommandValuesToEventDTO(cvs []*models.CommandValue, deviceName string, dic *di.Container) (eventDTO dtos.Event, e edgexErr.EdgeX)
- func MapCommandValue(value *dsModels.CommandValue, mappings map[string]string) (*dsModels.CommandValue, bool)
- func TransformReadResult(cv *dsModels.CommandValue, pv models.PropertyValue, lc logger.LoggingClient) error
- func TransformWriteParameter(cv *dsModels.CommandValue, pv models.PropertyValue, lc logger.LoggingClient) error
- type NaNError
- type OverflowError
Constants ¶
View Source
const ( Overflow = "overflow" NaN = "NaN" )
Variables ¶
This section is empty.
Functions ¶
func CheckAssertion ¶
func CheckAssertion( cv *dsModels.CommandValue, assertion string, deviceName string, lc logger.LoggingClient, dc interfaces.DeviceClient) error
func CommandValuesToEventDTO ¶
func MapCommandValue ¶
func MapCommandValue(value *dsModels.CommandValue, mappings map[string]string) (*dsModels.CommandValue, bool)
func TransformReadResult ¶
func TransformReadResult(cv *dsModels.CommandValue, pv models.PropertyValue, lc logger.LoggingClient) error
func TransformWriteParameter ¶
func TransformWriteParameter(cv *dsModels.CommandValue, pv models.PropertyValue, lc logger.LoggingClient) error
Types ¶
type NaNError ¶
type NaNError struct{}
NaNError is used to throw the NaN error for the floating-point value
type OverflowError ¶
type OverflowError struct {
// contains filtered or unexported fields
}
OverflowError is used to throw the error of transformed value is out of range
func NewOverflowError ¶
func NewOverflowError(origin interface{}, transformed float64) OverflowError
func (OverflowError) Error ¶
func (e OverflowError) Error() string
func (OverflowError) String ¶
func (e OverflowError) String() string
Click to show internal directories.
Click to hide internal directories.