Documentation
¶
Index ¶
- Constants
- func CastCommandValue(resourceName string, valueType string, reading interface{}) (result *models.CommandValue, err error)
- func CheckValueRange(valueType string, reading interface{}) bool
- func GetBoolEnv(key string, fallback bool) bool
- func GetIntEnv(key string, fallback int64) int64
- func ObjectToQueryParam(obj interface{}) (map[string]string, error)
- func ParametersFromURLRawQuery(req sdkmodels.CommandRequest) ([]byte, errors.EdgeX)
- func PassageFromProtocols(protocols map[string]models.ProtocolProperties) (map[string]string, errors.EdgeX)
- func Ternary[T any](x bool, a T, b T) T
- func Validate(s interface{}) error
Constants ¶
View Source
const ( URLRawQuery = "urlRawQuery" ServiceParams = "service_params" Passage = "passage" )
Variables ¶
This section is empty.
Functions ¶
func CastCommandValue ¶ added in v1.1.1
func CastCommandValue(resourceName string, valueType string, reading interface{}) (result *models.CommandValue, err error)
func CheckValueRange ¶ added in v1.1.1
func GetBoolEnv ¶
func ObjectToQueryParam ¶
func ParametersFromURLRawQuery ¶
func ParametersFromURLRawQuery(req sdkmodels.CommandRequest) ([]byte, errors.EdgeX)
func PassageFromProtocols ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.